Mercurial > hg-stable
changeset 26528:8bfef5737321
filemerge: move 'merging' output to before file creation
This has no visible impact but makes some future work simpler.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 07 Oct 2015 22:58:52 -0700 |
parents | b4aab4223102 |
children | 7833b13b001f |
files | mercurial/filemerge.py |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/filemerge.py Wed Oct 07 21:21:56 2015 -0700 +++ b/mercurial/filemerge.py Wed Oct 07 22:58:52 2015 -0700 @@ -493,6 +493,13 @@ if mergetype == nomerge: return func(repo, mynode, orig, fcd, fco, fca, toolconf) + if orig != fco.path(): + ui.status(_("merging %s and %s to %s\n") % (orig, fco.path(), fd)) + else: + ui.status(_("merging %s\n") % fd) + + ui.debug("my %s other %s ancestor %s\n" % (fcd, fco, fca)) + a = repo.wjoin(fd) b = temp("base", fca) c = temp("other", fco) @@ -500,13 +507,6 @@ util.copyfile(a, back) files = (a, b, c, back) - if orig != fco.path(): - ui.status(_("merging %s and %s to %s\n") % (orig, fco.path(), fd)) - else: - ui.status(_("merging %s\n") % fd) - - ui.debug("my %s other %s ancestor %s\n" % (fcd, fco, fca)) - r = 0 if precheck and not precheck(repo, mynode, orig, fcd, fco, fca, toolconf):