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

[Patch] git-cvsimport: tiny fix

From
EElrond <elrond+kernel.org@samba-tng.org>
Date
May 10, 2006, 17:37 UTC
Message-ID
<20060510173703.GA10335@memak.tu-darmstadt.de>
git-cvsimport: Handle "Removed" from pserver

Sometimes the pserver says "Removed" instead of "Remove-entry".

Signed-off-by: Elrond <elrond+kernel.org@samba-tng.org>
---
Hi,

At least the above happened to me on a repository I tried to convert. Without the patch, it just die("Unknown: Removed ...")s.

    Elrond

--- git-cvsimport.perl +++ git-cvsimport.perl

@@ -350,7 +350,7 @@ sub _line {
 				return $res;
 			} elsif($line =~ s/^E //) {
 				# print STDERR "S: $line\n";
-			} elsif($line =~ /^Remove-entry /i) {
+			} elsif($line =~ /^(Remove-entry|Removed) /i) {
 				$line = $self->readline(); # filename
 				$line = $self->readline(); # OK
 				chomp $line;
Next: Junio C Hamano
Message 1 of 4 in “git-cvsimport: tiny fix”
  1. git-cvsimport: tiny fixElrond, May 10, 2006
  2. Junio C HamanoMay 17, 2006
  3. Martin LanghoffMay 18, 2006
  4. ElrondMay 18, 2006

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.