Package: devscripts
Version: 2.10.20
Severity: normal

If you try to tag a package that uses an epoch number, hg will simply
fail tagging because there it doesn't support the : character in tag
names.  Like so:

[r:4 b:default s:[EMAIL PROTECTED]:openssh > hg tag 1:1
abort: ':' cannot be used in a tag name

Replacing the : character with another one works.  In the attached
patch, I replace : by _ before tagging.

-- System Information:
Debian Release: lenny/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.9systemtap-moka0 (PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages devscripts depends on:
ii  debianutils                   2.28.4     Miscellaneous utilities specific t
ii  dpkg-dev                      1.14.16.6  package building tools for Debian
ii  libc6                         2.7-9      GNU C Library: Shared libraries
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 
ii  sed                           4.1.5-6    The GNU sed stream editor

Versions of packages devscripts recommends:
ii  fakeroot                      1.9.3      Gives a fake root environment

-- no debconf information
Index: scripts/debcommit.pl
===================================================================
--- scripts/debcommit.pl        (revision 1227)
+++ scripts/debcommit.pl        (working copy)
@@ -548,9 +548,10 @@
        }
     }
     elsif ($prog eq 'hg') {
-           $tag="debian-$tag";
-       if (! action($prog, "tag", "-m", "tagging version $tag", $tag)) {
-               die "debcommit: failed tagging with $tag\n";
+        $tag =~ s/:/_/;
+        my $hgtag="debian-$tag";
+       if (! action($prog, "tag", "-m", "tagging version $hgtag", $hgtag)) {
+               die "debcommit: failed tagging with $hgtag\n";
        }
     }
     else {

Reply via email to