Display conflicts to be resolved.
Benoit Boissinot
bboissin at gmail.com
Wed Aug 8 09:19:59 CDT 2007
On 8/7/07, Frank Bauer <frank.c.bauer at gmail.com> wrote:
> Hi,
>
> I'm using mercurial 0.9.4 and I can't find a way to display
> files with conflicts that need to be resolved.
>
> When I hg pull from the master repository and then call hg merge, I can
> resolve the conflicts in the editor just fine.
> However sometimes I'm just not prepared to do the full
> merge right now so I resolve only some trivial conflicts
> and postpone the harder ones for later time. Now is there
> some command (I expected hg status) to show which
> files contain conflicts and therefore need
> some care? (IIRC I saw something like that
> in subversion and maybe bzr.)
>
It's quite a pain, you have to grep for conflict marker.
egrep '^(<<<<<<< .*|=======|>>>>>>> .*)$' $(hg st -mn)
regards,
Benoit
More information about the Mercurial
mailing list