author | Siddharth Agarwal <sid0@fb.com> |
Thu, 08 Oct 2015 14:17:31 -0700 | |
changeset 26573 | a875773cf537 |
parent 26572 | c7850af6bb75 |
child 26574 | f82cb7dffb49 |
--- a/mercurial/filemerge.py Thu Oct 08 14:16:19 2015 -0700 +++ b/mercurial/filemerge.py Thu Oct 08 14:17:31 2015 -0700 @@ -346,16 +346,14 @@ ``a.txt``, these files will accordingly be named ``a.txt.local``, ``a.txt.other`` and ``a.txt.base`` and they will be placed in the same directory as ``a.txt``.""" - r = 1 - if r: - a, b, c, back = files + a, b, c, back = files + + fd = fcd.path() - fd = fcd.path() - - util.copyfile(a, a + ".local") - repo.wwrite(fd + ".other", fco.data(), fco.flags()) - repo.wwrite(fd + ".base", fca.data(), fca.flags()) - return False, r + util.copyfile(a, a + ".local") + repo.wwrite(fd + ".other", fco.data(), fco.flags()) + repo.wwrite(fd + ".base", fca.data(), fca.flags()) + return False, 1 def _xmerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None): r = 1