[PATCH] git-cvsimport-script: parse multidigit revisions.
authorSven Verdoolaege <skimo@liacs.nl>
Tue, 12 Jul 2005 21:35:32 +0000 (23:35 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 12 Jul 2005 22:37:25 +0000 (15:37 -0700)
Previously, git-cvsimport-script would fail
on revisions with more than one digit.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
git-cvsimport-script

index 0ed12ff..8f57396 100755 (executable)
@@ -675,7 +675,7 @@ while(<CVS>) {
                $state = 9;
        } elsif($state == 8) {
                $logmsg .= "$_\n";
-       } elsif($state == 9 and /^\s+(\S+):(INITIAL|\d(?:\.\d+)+)->(\d(?:\.\d+)+)\s*$/) {
+       } elsif($state == 9 and /^\s+(\S+):(INITIAL|\d+(?:\.\d+)+)->(\d+(?:\.\d+)+)\s*$/) {
 #      VERSION:1.96->1.96.2.1
                my $init = ($2 eq "INITIAL");
                my $fn = $1;