Mercurial > hg
changeset 26613:abb5ec3eb6ce
filemerge: clean up some dead code
We now exit early if we do a premerge, so extra checks are no longer necessary.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sun, 11 Oct 2015 15:04:00 -0700 |
parents | a38924f7680c |
children | ef1eb6df7071 |
files | mercurial/filemerge.py |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/filemerge.py Mon Oct 12 14:15:04 2015 -0400 +++ b/mercurial/filemerge.py Sun Oct 11 15:04:00 2015 -0700 @@ -522,12 +522,8 @@ # complete if premerge successful (r is 0) return not r, r - if not r: # premerge successfully merged the file - needcheck = False - else: - needcheck, r = func(repo, mynode, orig, fcd, fco, fca, toolconf, - files, labels=labels) - + needcheck, r = func(repo, mynode, orig, fcd, fco, fca, toolconf, files, + labels=labels) if needcheck: r = _check(r, ui, tool, fcd, files)