Change --ignore-same-version to --allow-same-version
authorGuido Günther <agx@sigxcpu.org>
Mon, 20 Dec 2010 09:55:46 +0000 (10:55 +0100)
committerGuido Günther <agx@sigxcpu.org>
Mon, 20 Dec 2010 10:08:36 +0000 (11:08 +0100)
and properly document it. This matches the defaults we had since ages.

docs/manpages/git-import-dsc.sgml
git-import-dsc

index 5997ef7..a00aff2 100644 (file)
          </para>
         </listitem>
       </varlistentry>
+      <varlistentry>
+        <term><option>--allow-same-version</option>
+        </term>
+        <listitem>
+         <para>Allow to import a package with the same debian version.</para>
+        </listitem>
+      </varlistentry>
      </variablelist>
   </refsect1>
   <refsect1>
index 017465c..c93f01b 100755 (executable)
@@ -193,9 +193,9 @@ def main(argv):
                       dest="filters", action="append")
     import_group.add_boolean_config_file_option(option_name="pristine-tar",
                       dest="pristine_tar")
-    import_group.add_option("--ignore-same-version", action="store_true",
-                      dest="ignore_same_version", default=False,
-                      help="don't import already imported version")
+    import_group.add_option("--allow-same-version", action="store_true",
+                      dest="allow_same_version", default=False,
+                      help="allow to import already imported version")
     (options, args) = parser.parse_args(argv[1:])
     gbp.log.setup(options.color, options.verbose)
 
@@ -247,8 +247,8 @@ def main(argv):
 
             if repo.find_version(options.debian_tag, src.version):
                  gbp.log.warn("Version %s already imported." % src.version)
-                 if options.ignore_same_version:
-                    gbp.log.info("Moving tag of version %s since import forced, src.ver")
+                 if options.allow_same_version:
+                    gbp.log.info("Moving tag of version '%s' since import forced" % src.version)
                     move_tag_stamp(repo, options.debian_tag, src.version)
                  else:
                     raise SkipImport