Show More
@@ -110,15 +110,18 b' def normalized_merge(local, base, other,' | |||
|
110 | 110 | ret = simplemerge.simplemerge(uimod.ui.load(), |
|
111 | 111 | context.arbitraryfilectx(local.encode('utf-8')), |
|
112 | 112 | context.arbitraryfilectx(base.encode('utf-8')), |
|
113 | context.arbitraryfilectx(other.encode('utf-8')) | |
|
113 | context.arbitraryfilectx(other.encode('utf-8')), | |
|
114 | label=[b'local', b'other', b'base'], | |
|
115 | mode='merge', | |
|
114 | 116 | ) |
|
115 | shutil.copyfile(local, output) # simplemerge wrote to local | |
|
117 | shutil.copyfile(local, output) # simplemerge wrote to local - either resolved or with conflict markers | |
|
116 | 118 | if ret: |
|
119 | shutil.copyfile(localkeep, local) | |
|
117 | 120 | basekeep = base + '.keep' |
|
118 | 121 | otherkeep = other + '.keep' |
|
119 | 122 | shutil.copyfile(base, basekeep) |
|
120 | 123 | shutil.copyfile(other, otherkeep) |
|
121 |
sys.stderr.write("Error: simple merge failed |
|
|
124 | sys.stderr.write("Error: simple merge failed and %s is left with conflict markers. Resolve the conflics , then use 'hg resolve -m'.\n" % output) | |
|
122 | 125 | sys.stderr.write('Resolve with e.g.: kdiff3 %s %s %s -o %s\n' % (basekeep, localkeep, otherkeep, output)) |
|
123 | 126 | sys.exit(ret) |
|
124 | 127 |
General Comments 0
You need to be logged in to leave comments.
Login now