summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2007-05-28 03:18:05 +0200
committerGuido Guenther <agx@bogon.sigxcpu.org>2007-05-28 03:18:05 +0200
commit9cddf82d5dcbfb4860b5612bc7800c3f63a01ffd (patch)
treea9fd8b77703b36414916d52385e111dfb4c81806
parent44330a25a71415334516e3e00443dcb0434189b9 (diff)
parent2761704e7845cd8c829038816d539277f1f136bd (diff)
downloadgit-buildpackage-9cddf82d5dcbfb4860b5612bc7800c3f63a01ffd.tar.gz
git-buildpackage-9cddf82d5dcbfb4860b5612bc7800c3f63a01ffd.tar.bz2
git-buildpackage-9cddf82d5dcbfb4860b5612bc7800c3f63a01ffd.zip
Merge ../git-buildpackage into locals/import-orig-by-index
-rw-r--r--debian/changelog17
-rw-r--r--docs/chapters/cfgfile.sgml2
-rw-r--r--docs/chapters/import.sgml17
-rw-r--r--docs/chapters/special.sgml2
-rw-r--r--docs/manpages/git-buildpackage.sgml4
-rw-r--r--docs/manpages/git-import-dsc.sgml4
-rw-r--r--docs/manpages/git-import-orig.sgml33
-rw-r--r--docs/manpages/manpages.ent2
-rw-r--r--gbp/deb_utils.py6
-rwxr-xr-xgit-import-orig2
10 files changed, 63 insertions, 26 deletions
diff --git a/debian/changelog b/debian/changelog
index 39df9fbf..a043c5cd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,22 @@
+git-buildpackage (0.2.31) unstable; urgency=low
+
+ * git-import-orig: rename --upstreamversion to --upstream-version, to match
+ the documentation and the uther --upstream-* options
+ * add several missing options to manpages and documentation
+
+ -- Guido Guenther <agx@sigxcpu.org> Thu, 24 May 2007 09:38:35 +0200
+
+git-buildpackage (0.2.30) unstable; urgency=low
+
+ * fix changelog upstream version parsing (Closes: #425615)
+ * git-import-orig: allow to import from an unpacked source tree
+
+ -- Guido Guenther <agx@sigxcpu.org> Thu, 24 May 2007 06:19:06 +0200
+
git-buildpackage (0.2.29) unstable; urgency=low
* git-import-orig: more specific error message, when the merge merge fails
- (Closes: #423036)
+ (Closes: #424036)
-- Guido Guenther <agx@sigxcpu.org> Tue, 15 May 2007 23:55:07 +0200
diff --git a/docs/chapters/cfgfile.sgml b/docs/chapters/cfgfile.sgml
index 27f8d425..26dc5230 100644
--- a/docs/chapters/cfgfile.sgml
+++ b/docs/chapters/cfgfile.sgml
@@ -12,7 +12,7 @@
</varlistentry>
<varlistentry>
<term>.git/gbp.conf</term>
- <listitem><para>per repository configuration</para></listitem>
+ <listitem><para>per working copy configuration</para></listitem>
</varlistentry>
</variablelist>
All three have the same format. They consist of (at most) four sections, all of them are optional:
diff --git a/docs/chapters/import.sgml b/docs/chapters/import.sgml
index 8ba17190..1420999f 100644
--- a/docs/chapters/import.sgml
+++ b/docs/chapters/import.sgml
@@ -17,16 +17,25 @@
<sect1 id="gbp.import.new.upstream">
<title>Importing a new upstream version</title>
<para>Change into your git repository, make sure it has all local
- modifications committed and do:
+ modifications committed and run either of:
<screen>
&git-import-orig; /path/to/package_0.2.orig.tar.gz
+&git-import-orig; /path/to/package_0.2.tar.bz2
+&git-import-orig; /path/to/package-0.2/
</screen>
- This puts the upstream souces onto the <emphasis>upsream</emphasis> branch
- using &git_load_dirs; to handle file removals and renames. The result of
+ This puts the upstream souces onto the <emphasis>upstream</emphasis> branch
+ using &gitloaddirs; to handle file removals and renames. The result of
this is then merged onto the <emphasis>master</emphasis> branch and a new
- changelog entry gets created. You can again specify different branch names
+ changelog entry is created. You can again specify different branch names
via the <option>--upstream-branch</option> and
<option>--debian-branch</option> options.
+ </para>
+ <para>
+ If you expect a merge conflict you can delay the merge to
+ <emphasis>master</emphasis> via the <option>--no-merge</option> and pull in
+ the changes from the <emphasis>upstream</emphasis> branch any time later.
+ </para>
+ <para>
</para>
</sect1>
<sect1 id="gbp.import.convert">
diff --git a/docs/chapters/special.sgml b/docs/chapters/special.sgml
index 5fff3d39..9fa78747 100644
--- a/docs/chapters/special.sgml
+++ b/docs/chapters/special.sgml
@@ -16,7 +16,7 @@
</para>
<screen>
&git-import-orig; --no-merge nondfsg-clean-package_10.4.orig.tar.gz
-&gitcmd; tag; 10.4
+&gitcmd; tag 10.4
</screen>
<para>
After the import you can switch to the dfsg branch and get the newly
diff --git a/docs/manpages/git-buildpackage.sgml b/docs/manpages/git-buildpackage.sgml
index 547f1e51..ae8eadf4 100644
--- a/docs/manpages/git-buildpackage.sgml
+++ b/docs/manpages/git-buildpackage.sgml
@@ -22,8 +22,8 @@
<arg><option>--git-ignore-new</option></arg>
<arg><option>--git-tag</option></arg>
<arg><option>--git-verbose</option></arg>
- <arg><option>--upstream-branch=</option><replaceable>branch_name</replaceable></arg>
- <arg><option>--debian-branch=</option><replaceable>branch_name</replaceable></arg>
+ <arg><option>--git-upstream-branch=</option><replaceable>branch_name</replaceable></arg>
+ <arg><option>--git-debian-branch=</option><replaceable>branch_name</replaceable></arg>
<arg><option>--git-builder=</option><replaceable>BUILD_CMD</replaceable></arg>
<arg><option>--git-cleaner=</option><replaceable>CLEAN_CMD</replaceable></arg>
<arg><option>--git-sign-tags</option></arg>
diff --git a/docs/manpages/git-import-dsc.sgml b/docs/manpages/git-import-dsc.sgml
index 559e01aa..1af9d774 100644
--- a/docs/manpages/git-import-dsc.sgml
+++ b/docs/manpages/git-import-dsc.sgml
@@ -52,8 +52,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><option>--verbose</option>, <option>-v</option>
- </term>
+ <term><option>--verbose</option></term>
+ <term><option>-v</option></term>
<listitem>
<para>verbose execution</para>
</listitem>
diff --git a/docs/manpages/git-import-orig.sgml b/docs/manpages/git-import-orig.sgml
index 4853e78a..a28047ec 100644
--- a/docs/manpages/git-import-orig.sgml
+++ b/docs/manpages/git-import-orig.sgml
@@ -22,6 +22,8 @@
&git-import-orig;
<arg><option>--verbose</option></arg>
+ <arg><option>--upstream-version=</option><replaceable>version</replaceable></arg>
+ <arg><option>--no-merge</option></arg>
<arg><option>--upstream-branch=</option><replaceable>branch_name</replaceable></arg>
<arg><option>--debian-branch=</option><replaceable>branch_name</replaceable></arg>
<arg><option>--upstream-version=</option><replaceable>version</replaceable></arg>
@@ -34,15 +36,16 @@
<refsect1>
<title>DESCRIPTION</title>
<para>
- &git-import-orig; imports the tar.gz archive given by
- <replaceable>upstream-source</replaceable> into the &git; repository. If
- <replaceable>upstream-source</replaceable> is already of the form
- <replaceable>package-name_version.orig.tar.gz</replaceable>, it reads the
- version information from the tarball's filename otherwise it can be
- specified on the commandline via <option>--upstream-version</option>.
+ &git-import-orig; imports <replaceable>upstream-source</replaceable> into
+ the &git; repository. <replaceable>upstream-source</replaceable> can either
+ be a gzip or bzip2 compressed tar archive or an alreay unpacked source
+ tree. If it is already of the form
+ <replaceable>package-name_version.orig.tar.gz</replaceable>, the version
+ information is read from the tarball's filename otherwise it can be
+ given on the command line via <option>--upstream-version</option>.
- When importing the new version <command>git_load_dirs</command> is being
- used to detect file renames and removals.
+ Upon import <command>git_load_dirs</command> is being used to detect file
+ renames and removals.
</para>
</refsect1>
<refsect1>
@@ -50,13 +53,19 @@
<variablelist>
<varlistentry>
- <term><option>--upstream-version</option>=<replaceable>version</replaceable>,
- <option>-u</option><replaceable>version</replaceable></term>
+ <term><option>--upstream-version</option>=<replaceable>version</replaceable></term>
+ <term><option>-u</option><replaceable>version</replaceable></term>
<listitem>
<para>The upstream version number</para>
</listitem>
</varlistentry>
<varlistentry>
+ <term><option>--no-merge</option></term>
+ <listitem>
+ <para>Don't merge the upstream version to the development branch</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
<term><option>--upstream-branch</option>=<replaceable>branch_name</replaceable>
</term>
<listitem>
@@ -75,8 +84,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><option>--verbose</option>, <option>-v</option>
- </term>
+ <term><option>--verbose</option></term>
+ <term><option>-v</option></term>
<listitem>
<para>verbose execution</para>
</listitem>
diff --git a/docs/manpages/manpages.ent b/docs/manpages/manpages.ent
index 99ff76ec..6f76421a 100644
--- a/docs/manpages/manpages.ent
+++ b/docs/manpages/manpages.ent
@@ -16,7 +16,7 @@
</varlistentry>
<varlistentry>
<term>.git/gbp.conf</term>
- <listitem><para>per repository configuration</para></listitem>
+ <listitem><para>per working copy configuration</para></listitem>
</varlistentry>
</variablelist>
<para>
diff --git a/gbp/deb_utils.py b/gbp/deb_utils.py
index 8c4fd917..f4bc854b 100644
--- a/gbp/deb_utils.py
+++ b/gbp/deb_utils.py
@@ -18,7 +18,11 @@ def parse_changelog(changelog):
return None
cp = email.message_from_string(output)
if '-' in cp['Version']:
- cp['Upstream-Version'], cp['Debian-Version'] = cp['Version'].rsplit('-', 1)
+ upstream_version, cp['Debian-Version'] = cp['Version'].rsplit('-', 1)
+ if ':' in upstream_version:
+ cp['Epoch'], cp['Upstream-Version'] = upstream_version.split(':',1)
+ else:
+ cp['Upstream-Version'] = upstream_version
else:
cp['Debian-Version'] = cp['Version']
return cp
diff --git a/git-import-orig b/git-import-orig
index 53dbb3d7..521446d1 100755
--- a/git-import-orig
+++ b/git-import-orig
@@ -81,7 +81,7 @@ def main(argv):
parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='',
usage='%prog [-u version] /path/to/upstream-version.tar.gz')
- parser.add_option("-u", "--upstreamversion", dest="version",
+ parser.add_option("-u", "--upstream-version", dest="version",
help="Upstream Version")
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")