merge conflict
Aaron Bingham
bingham at google.com
Wed Oct 28 07:21:13 UTC 2009
hg resolve --mark filename
2009/10/28 Octavian Râşniţă <orasnita at gmail.com>:
> Hi,
>
> I have tried an hg pull command and I need to do a merge with 2 heads. After
> giving the hg merge command, it gave a few merge conflicts.
>
> For example, a conflict in a file is looking like:
>
> requires 'Config::JFDI' => '0.064';
> <<<<<<< local
> requires 'Template::Plugin::Date';
> requires 'Template::Plugin::DateTime';
> =======
> requires 'Template::Plugin::Cache';
>>>>>>>> other
>
> How should I solve this conflict if I want to have in the file both the 2
> lines in a head and the other line found in the other head so the result
> should look like:
>
> requires 'Config::JFDI' => '0.064';
> requires 'Template::Plugin::Date';
> requires 'Template::Plugin::DateTime';
> requires 'Template::Plugin::Cache';
>
> I have tried to just delete the lines marked with <<<, >>> and === and then
> gave the command
>
> hg resolve
>
> but it gave again that merge error and hg inserted again those lines in the
> source file.
>
> I have made again the correction and then I tried to do:
>
> hg commit File_name
>
> but hg told that I can't do a commit in the middle of an unresolved merge.
>
> Help!
>
> Thank you.
>
> --
> Octavian
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
--
Aaron Bingham / Software Engineer / bingham at google.com / +41 (44) 668 1380
Google Switzerland GmbH / Brandschenkestrasse 110 / CH-8002 Zurich / Switzerland
More information about the Mercurial
mailing list