git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-cvsimport-script: parse multidigit revisions

From
SVSven Verdoolaege <skimo@liacs.nl>
Date
Jul 12, 2005, 21:35 UTC
Message-ID
<20050712213531.GA10936@pc117b.liacs.nl>
git-cvsimport-script: parse multidigit revisions.

Previously, git-cvsimport-script would fail on revisions with more than one digit.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>

--- commit 7b5f7bcc470528beb4a0b6ef1c93ce634aaa0158 tree db66d0759f97016bd123e2351aa0e77585e3177b parent e30e814dbfef7a6e89418863e5d7291a2d53b18f author Sven Verdoolaege <skimo@kotnet.org> Tue, 12 Jul 2005 22:36:57 +0200 committer Sven Verdoolaege <skimo@kotnet.org> Tue, 12 Jul 2005 22:36:57 +0200

 git-cvsimport-script |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-cvsimport-script b/git-cvsimport-script
--- a/git-cvsimport-script
+++ b/git-cvsimport-script
@@ -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;
Next: Matthias Urlichs
Message 1 of 11 in “git-cvsimport-script: parse multidigit revisions”
  1. git-cvsimport-script: parse multidigit revisionsSven Verdoolaege, Jul 12, 2005
  2. Matthias UrlichsJul 13, 2005
  3. Linus TorvaldsJul 25, 2005
  4. Matthias UrlichsJul 25, 2005
  5. Linus TorvaldsJul 26, 2005
  6. Linus TorvaldsJul 26, 2005
  7. Linus TorvaldsJul 26, 2005
  8. Rene ScharfeJul 26, 2005
  9. David MansfieldJul 26, 2005
  10. Linus TorvaldsJul 26, 2005
  11. Ryan AndersonJul 26, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.