# HG changeset patch # User Siddharth Agarwal # Date 1444339051 25200 # Node ID a875773cf5371fbe475511775d66cfaf7386416b # Parent c7850af6bb758e04575a58035820a87b07fb304e filemerge._idump: drop no longer necessary 'if r:' check Cleanup from an earlier patch to make premerge be directly called from the main filemerge function. diff -r c7850af6bb75 -r a875773cf537 mercurial/filemerge.py --- 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