Submitter | Siddharth Agarwal |
---|---|
Date | Nov. 19, 2015, 7:45 a.m. |
Message ID | <59604adedebf578e4c6a.1447919122@dev666.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/11504/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -5704,7 +5704,11 @@ def resolve(ui, repo, *pats, **opts): # replace filemerge's .orig file with our resolve file a = repo.wjoin(f) - util.rename(a + ".resolve", a + ".orig") + try: + util.rename(a + ".resolve", cmdutil.origpath(ui, repo, a)) + except OSError as inst: + if inst.errno != errno.ENOENT: + raise ms.commit()