[PATCH] Updated convert-repo script (1/3 Git 1.3.0 fix)

Alexis S. L. Carvalho alexis at cecm.usp.br
Thu May 4 09:38:36 CDT 2006


Thus spake Sébastien Pierre:
> Le mardi 02 mai 2006 à 20:09 -0300, Alexis S. L. Carvalho a écrit :
> 
> > > I'm not the original author of the "convert-repo" script, so I don't
> > > really know if that is what was actually intended, but this patch fixes
> > > the compatibilty problem with git-1.3.0.
> > 
> > I meant that instead of poking into the file, it's probably better to
> > use git's interface to it - git-rev-parse HEAD

hmm.. true.

This function is supposed to return a list of revisions that have no
children.  As long as git is able to understand every list item as a
revision id, everything is fine.

This means that you could return something like "master" (which is what
your patch would usually return), an SHA1 hash (which is what
git-rev-parse returns) or even "HEAD" itself(!).

IOW, the simplest patch is probably to just do a "return ['HEAD']" :)

Alexis


More information about the Mercurial mailing list