commands, merge: call setconfig on the right ui
authorIdan Kamara <idankk86@gmail.com>
Tue, 05 Jul 2011 14:36:33 +0300
changeset 14840 11b5a5d2ca8b
parent 14839 510c893a726f
child 14844 7aaae5466ad3
commands, merge: call setconfig on the right ui In practice this doesn't change anything since ui == repo.ui here, but setting repo.ui explicitly here is clearer since hg.merge will use repo.ui later on.
mercurial/commands.py
--- a/mercurial/commands.py	Tue Jul 05 14:28:55 2011 +0300
+++ b/mercurial/commands.py	Tue Jul 05 14:36:33 2011 +0300
@@ -3587,7 +3587,7 @@
 
     try:
         # ui.forcemerge is an internal variable, do not document
-        ui.setconfig('ui', 'forcemerge', opts.get('tool', ''))
+        repo.ui.setconfig('ui', 'forcemerge', opts.get('tool', ''))
         return hg.merge(repo, node, force=opts.get('force'))
     finally:
         ui.setconfig('ui', 'forcemerge', '')