mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
merge: print status message before launching external merge tool
It seems somewhat common that people run into a merge conflict and don't notice the launched merge tool, and instead they think hg just hung. Let's print a message for each file that we launch a GUI merge tool for.
This commit is contained in:
parent
5f644ba68a
commit
d96c319788
@ -489,6 +489,9 @@ def _xmerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None):
|
||||
args = util.interpolate(r'\$', replace, args,
|
||||
lambda s: util.shellquote(util.localpath(s)))
|
||||
cmd = toolpath + ' ' + args
|
||||
if _toolbool(ui, tool, "gui"):
|
||||
repo.ui.status(_('running merge tool %s for file %s\n') %
|
||||
(tool, fcd.path()))
|
||||
repo.ui.debug('launching merge tool: %s\n' % cmd)
|
||||
r = ui.system(cmd, cwd=repo.root, environ=env)
|
||||
repo.ui.debug('merge tool returned: %s\n' % r)
|
||||
|
Loading…
Reference in New Issue
Block a user