comparison help/topics/34.txt @ 532:06507a59f2b8 easyhg_v1.1

This will do for the Merge topic
author Chris Cannam
date Wed, 23 Nov 2011 17:24:47 +0000
parents f56e5c39aad1
children e40e3ebe9f2e
comparison
equal deleted inserted replaced
531:f56e5c39aad1 532:06507a59f2b8
9 When that happens and you try to merge the two versions, EasyMercurial 9 When that happens and you try to merge the two versions, EasyMercurial
10 will pop up a merge window that looks a bit like this. 10 will pop up a merge window that looks a bit like this.
11 11
12 #merge50 12 #merge50
13 13
14 (This is actually a separate program, a merge tool called kdiff3.) 14 (This is actually a separate program, not part of EasyMercurial: it's
15 a merge tool called kdiff3.)
15 16
16 This looks a bit complicated, but it is there to help you pick which 17 This looks a bit complicated, but it is there to help you pick which
17 of the changes from each of the two "rival" versions of the file you 18 of the changes from each of the two "rival" versions of the file you
18 want to use in your merged version. 19 want to use in your merged version.
19 20
21 *The top middle one is _your current version_.* That's
22 the one you had before you decided to merge the other version into
23 it.
20 24
25 *At top right is _the version you're merging_.* That's the other
26 rival version -- the one that the other person can see in their copy
27 of the repository.
28
29 *At top left is _the common ancestor_.* That's the version that both
30 of you had, before you started editing it in different ways.
31
32 *At the bottom is the output.*
33
34 Each _conflict_ (a line which you have both changed in different ways)
35 is shown with *Merge Conflict* in the output at the bottom. To sort
36 out the conflicts and get the right output, you need to go through
37 them one by one, for each one pressing the A, B, or C button to say
38 whether for this line you want the top-left, top-middle, or top-right
39 version to "win". (You can choose more than one, if you want both
40 versions of a line to appear.)
41
42 Then having resolved a conflict, press the three-arrows-down toolbar
43 button to go to the next one -- and when you've done them all, save
44 and exit.
45
46 The most important thing to remember is that _whatever appears in the
47 bottom pane is what you'll get as a result_.
48
49 No matter how confusing the process, just remember that if it looks
50 correct in the bottom pane, it will be correct when you save and
51 exit. You can even edit the file directly in the bottom pane if you
52 aren't happy with the way the merge is going.
53
54
55
56