mercurial/hg.py
changeset 240 737c66b68290
parent 232 fc4a6e5b5812
child 241 afe895fcc0d0
--- a/mercurial/hg.py	Fri Jun 03 13:44:34 2005 -0800
+++ b/mercurial/hg.py	Fri Jun 03 18:27:55 2005 -0800
@@ -981,8 +981,8 @@
         self.ui.debug("file %s: other %s ancestor %s\n" %
                               (fn, short(other), short(base)))
 
-        cmd = os.environ["HGMERGE"]
-        r = os.system("%s %s %s %s %s" % (cmd, a, b, c, fn))
+        cmd = os.environ.get("HGMERGE", "hgmerge")
+        r = os.system("%s %s %s %s" % (cmd, a, b, c))
         if r:
             self.ui.warn("merging %s failed!\n" % f)