git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch] git-cvsimport: tiny fix
@ 2006-05-10 17:37 Elrond
  2006-05-17 19:12 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Elrond @ 2006-05-10 17:37 UTC (permalink / raw)
  To: git

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;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Patch] git-cvsimport: tiny fix
  2006-05-10 17:37 [Patch] git-cvsimport: tiny fix Elrond
@ 2006-05-17 19:12 ` Junio C Hamano
  2006-05-18  4:53   ` Martin Langhoff
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2006-05-17 19:12 UTC (permalink / raw)
  To: git; +Cc: Elrond

Elrond <elrond+kernel.org@samba-tng.org> writes:

> 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.

Could somebody who actually works with CVS import Ack this?
Pretty please?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Patch] git-cvsimport: tiny fix
  2006-05-17 19:12 ` Junio C Hamano
@ 2006-05-18  4:53   ` Martin Langhoff
  2006-05-18 13:29     ` Elrond
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Langhoff @ 2006-05-18  4:53 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Elrond

On 5/18/06, Junio C Hamano <junkio@cox.net> wrote:
> Could somebody who actually works with CVS import Ack this?
> Pretty please?

Sounds sane. It would be interesting to hear about what repo (and
server) this was seen against. Elrond, can you tell us more about
this?

cheers,


martin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Patch] git-cvsimport: tiny fix
  2006-05-18  4:53   ` Martin Langhoff
@ 2006-05-18 13:29     ` Elrond
  0 siblings, 0 replies; 4+ messages in thread
From: Elrond @ 2006-05-18 13:29 UTC (permalink / raw)
  To: Martin Langhoff, Junio C Hamano; +Cc: git

On Thu, May 18, 2006 at 04:53:56PM +1200, Martin Langhoff wrote:
> On 5/18/06, Junio C Hamano <junkio@cox.net> wrote:
> >Could somebody who actually works with CVS import Ack this?
> >Pretty please?
> 
> Sounds sane. It would be interesting to hear about what repo (and
> server) this was seen against. Elrond, can you tell us more about
> this?

This is a private local repository.
git-cvsimport starts a local "cvs server" for this.

I tried to create a minimal repo, that would trigger the
same behaviour, but didn't succeed. My current guessing is,
that this happened in cooperation with "cvsps" caching.
(cvsps is a tool used by git-cvsimport).

I will move the cvsps cache for my problematic repo out of
the way and try a git-cvsimport from scratch to verify that
the above mentioned issue is related to cvsps caching.
But I still think, that handling all cvs pserver replies
should be done anyway in git-cvsimport (when it relies on
this mode of operation).


    Elrond

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-18 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-10 17:37 [Patch] git-cvsimport: tiny fix Elrond
2006-05-17 19:12 ` Junio C Hamano
2006-05-18  4:53   ` Martin Langhoff
2006-05-18 13:29     ` Elrond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).