##// END OF EJS Templates
filemerge: add internal:dump...
Matt Mackall -
r8831:91e26fb2 default
parent child Browse files
Show More
@@ -16,7 +16,8 b' def _toolstr(ui, tool, part, default="")'
16 def _toolbool(ui, tool, part, default=False):
16 def _toolbool(ui, tool, part, default=False):
17 return ui.configbool("merge-tools", tool + "." + part, default)
17 return ui.configbool("merge-tools", tool + "." + part, default)
18
18
19 _internal = ['internal:' + s for s in 'fail local other merge prompt'.split()]
19 _internal = ['internal:' + s
20 for s in 'fail local other merge prompt dump'.split()]
20
21
21 def _findtool(ui, tool):
22 def _findtool(ui, tool):
22 if tool in _internal:
23 if tool in _internal:
@@ -191,6 +192,12 b' def filemerge(repo, mynode, orig, fcd, f'
191
192
192 if tool == "internal:merge":
193 if tool == "internal:merge":
193 r = simplemerge.simplemerge(ui, a, b, c, label=['local', 'other'])
194 r = simplemerge.simplemerge(ui, a, b, c, label=['local', 'other'])
195 elif tool == 'internal:dump':
196 a = repo.wjoin(fd)
197 util.copyfile(a, a + ".local")
198 repo.wwrite(a + ".other", fco.data(), fco.flags())
199 repo.wwrite(a + ".base", fca.data(), fca.flags())
200 return 1 # unresolved
194 else:
201 else:
195 args = _toolstr(ui, tool, "args", '$local $base $other')
202 args = _toolstr(ui, tool, "args", '$local $base $other')
196 if "$output" in args:
203 if "$output" in args:
General Comments 0
You need to be logged in to leave comments. Login now