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

Re: [PATCH] cvsps/cvsimport: fix branch point calculation and broken branch imports

From
DMDavid Mansfield <david@cobite.com>
Date
Apr 3, 2008, 01:44 UTC
Message-ID
<1207187090.17329.15.camel@gandalf.cobite.com>
In-Reply-To
<7vprt8838y.fsf@gitster.siamese.dyndns.org>
On Wed, 2008-04-02 at 12:29 -0700, Junio C Hamano wrote:
Show 32 quoted lines
> David Mansfield <david@cobite.com> writes:
> 
> > In case you're wondering, I'm actually the original author of cvsps,
> > which is behind the scenes for cvsimport.  I don't call myself
> > maintainer because I've hardly been that over the last few years.
> >
> > Anyway, the fix to cvsps is attached (1st 2 patches) as well as the
> > patch to git-cvsimport.perl (2nd 2 patches) against the master branch as
> > of today's git repo.
> >
> > The cvsps patches apply with fuzz against the 2.1 version which is out
> > there.
> 
> When output from an unfixed cvsps is fed to the updated cvsimport, does it
> gracefully do the wrong thing (iow, create the same broken history not too
> much worse than the original)?
> 
> > @@ -826,12 +824,9 @@ while (<CVS>) {
> >  		$branch = $_;
> >  		$state = 5;
> >  	} elsif ($state == 5 and s/^Ancestor branch:\s+//) {
> > -		s/\s+$//;
> > -		$ancestor = $_;
> > -		$ancestor = $opt_o if $ancestor eq "HEAD";
> > +		# now ignored.  see 'Branches' below
> >  		$state = 6;
> >  	} elsif ($state == 5) {
> > -		$ancestor = undef;
> >  		$state = 6;
> >  		redo;
> >  	} elsif ($state == 6 and s/^Tag:\s+//) {
> 

Not currently. I'm just searching for failure modes for the feature at the moment (I've already found one myself).

You're right to point this out though. Maybe someone can help me write some tests for this?

Also, how does the git packaging (non-rpm version) specify and/or guarantee dependencies are at a certain version anyway?

David
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 18 in “cvsps/cvsimport: fix branch point calculation and broken branch imports”
  1. cvsps/cvsimport: fix branch point calculation and broken branch importsDavid Mansfield, Apr 2, 2008
  2. Junio C HamanoApr 2, 2008
  3. David MansfieldApr 3, 2008
  4. Junio C HamanoApr 3, 2008
  5. David MansfieldApr 3, 2008
  6. Steffen ProhaskaApr 3, 2008
  7. David MansfieldApr 3, 2008
  8. Michael HaggertyApr 4, 2008
  9. David MansfieldApr 7, 2008
  10. Jean-François VeilletteApr 7, 2008
  11. Michael HaggertyApr 9, 2008
  12. Ping YinApr 27, 2008
  13. Michael HaggertyApr 27, 2008
  14. Ping YinApr 27, 2008
  15. Ping YinApr 27, 2008
  16. Ping YinApr 27, 2008
  17. Ping YinApr 27, 2008
  18. Ping YinApr 27, 2008

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.