[PATCH 0 of 2] make graphlog behaviour similar to log

Benoit Boissinot benoit.boissinot at ens-lyon.org
Mon Apr 5 03:05:31 CDT 2010


On Mon, Apr 05, 2010 at 06:56:05AM +0500, vsh wrote:
> On Mon, Apr 5, 2010 at 4:35 AM, Benoit Boissinot <
> benoit.boissinot at ens-lyon.org> wrote:
> 
> 
> but i have a general question. while working with graphmod.filerevisions
> i noticed that some filerevisions had two parents which are the same.
> my understanding was there can be either 0(nullrev) parents, 1 parent
> or 2 parents(which are different).
> 
> for example, with the children extension enabled in the mercurial repo:
> $hg children -r 176 README --template '{rev}:{node}\n'
> 178:b3bf5a0edd6930462c0cdb93ba337f02146f9482
> 178:b3bf5a0edd6930462c0cdb93ba337f02146f9482
> 
> this has been parsed into the revlog index obviously. i did not have time to
> follow this further, but is there any reason it should do so?

Those are old bugs in the merge code, they should probably be merged
into one.
The other special case is parent1 == null, parent2 != null. IIRC it's
related to merge+rename.

Benoit
-- 
:wq


More information about the Mercurial-devel mailing list