Author: adam-guest
Date: 2008-03-31 17:02:05 +0000 (Mon, 31 Mar 2008)
New Revision: 1228

Modified:
   trunk/debian/changelog
   trunk/scripts/debcommit.pl
Log:
debcommit: Strip epochs from hg tags (Closes: #473593)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-03-30 18:37:46 UTC (rev 1227)
+++ trunk/debian/changelog      2008-03-31 17:02:05 UTC (rev 1228)
@@ -24,6 +24,7 @@
     + Tighten the "repository owner" regex for darcs.d.o to correctly check
       http://darcs.d.o/~foo/bar/baz against user foo
     + Ignore a repository owner mismatch in "print mode"
+  * debcommit: Strip epochs from hg tags (Closes: #473593)
   * dget: Pass --all-versions to apt-cache show in case the user has
     configured it to only show the candidate version. Thanks HÃ¥kon Stordahl
     (Closes: #472747)

Modified: trunk/scripts/debcommit.pl
===================================================================
--- trunk/scripts/debcommit.pl  2008-03-30 18:37:46 UTC (rev 1227)
+++ trunk/scripts/debcommit.pl  2008-03-31 17:02:05 UTC (rev 1228)
@@ -548,7 +548,8 @@
        }
     }
     elsif ($prog eq 'hg') {
-           $tag="debian-$tag";
+       $tag=~s/^[0-9]+://; # strip epoch
+       $tag="debian-$tag";
        if (! action($prog, "tag", "-m", "tagging version $tag", $tag)) {
                die "debcommit: failed tagging with $tag\n";
        }



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to