merge - How resolve this Mercurial conflict? -
merge - How resolve this Mercurial conflict? -
i'm frustrated mercurial , python since makes easy things difficult. have trivial conflict , since mercurial not give suggestion don't know how resolve trivial file conflict:
the conflict trivial if can't resolve can't resolve complicated either. can edit file way want , commit 1 time again anywhere? should run hg merge
? why can't mercurial allow me take version keep? why trivial near impossible without digging through 1000 poorly written manpages?
you need @ kdiff3 documentation, in particular section on merging , output window. resolve conflict, need decide if live
or january
right selection line. decision yours make, no tool can know if meant 1 or other.
in kdiff3, press ctrl + 2 select live
, press ctrl + 3 select january
or right-click in margin of bottom window , select line want. can click in bottom window , edit line manually.
mercurial let's configure merge tool way like. tortoisehg ships default configuration puts kdiff3 in top of list, can utilize tool if like. merge tool programme accepts 4 filenames: 3 files compare (base, parent 1, parent 2) , output file name.
to resolve conflicts on command-line need launch suitable command-line three-way merge tool. can illustration merge vim if like. (i'm afraid don't know vimdiff, utilize kdiff3 myself.)
if don't see merge tools pop up, can set
[ui] merge = internal:merge
to create mercurial utilize internal three-way merger only. merge files fine when edits not in conflicts. when there conflict, file marked "unresolved" , conflict markers stored in file.
you need edit file hand version want. can re-merge , pick either local (your) version:
$ hg resolve --tool internal:local your-file
or other version:
$ hg resolve --tool internal:other your-file
you restart merge hg resolve your-file
. file needs marked "resolved" before can commit it. done hg resolve --mark your-file
. see hg resolve --list
status of current merge.
mercurial merge merge-conflict-resolution kdiff3
Comments
Post a Comment