cannot redo 3-way merge by "hg resolve" if graft interrupted

Matt Mackall mpm at selenic.com
Wed Jun 13 14:24:17 CDT 2012


On Thu, 2012-06-14 at 00:57 +0900, Yuya Nishihara wrote:
> Hi,
> 
> (following the discussion of thg-dev
>  https://groups.google.com/d/msg/thg-dev/OPLrmnqHIpk/lEY9DEeoYswJ)
> 
> If "hg graft" fails with conflicts, it says "use hg resolve":
> 
> % hg graft 3 --tool internal:merge 
> grafting revision 3
> merging foo
> warning: conflicts during merge.
> merging foo incomplete! (edit conflicts, then use 'hg resolve --mark')
> abort: unresolved conflicts, can't continue
> (use hg resolve and hg graft --continue)
> 
> but in such case, the working directory does not have two parents,
> "hg resolve" does nothing:
> 
> % hg resolve --all
> 
> % hg resolve -l
> U foo
> 
> only "hg resolve -m" works.
> 
> Is this an expected behavior or a bug?

Sounds like a bug.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list