largefiles: fall back to the original for change/delete conflicts
authorSiddharth Agarwal <sid0@fb.com>
Wed, 18 Nov 2015 17:40:13 -0800
changeset 27050 df9b73d2d444
parent 27049 0d61f7ec7f76
child 27051 1168499e5266
largefiles: fall back to the original for change/delete conflicts The largefiles merge code (currently) does not handle change/delete conflicts. So fall back to regular filemerge in that case. Making this code handle change/delete conflicts is left as an exercise for the future.
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Sat Nov 14 00:07:11 2015 -0800
+++ b/hgext/largefiles/overrides.py	Wed Nov 18 17:40:13 2015 -0800
@@ -544,7 +544,7 @@
 # largefiles. This will handle identical edits without prompting the user.
 def overridefilemerge(origfn, premerge, repo, mynode, orig, fcd, fco, fca,
                       labels=None):
-    if not lfutil.isstandin(orig):
+    if not lfutil.isstandin(orig) or fcd.isabsent() or fco.isabsent():
         return origfn(premerge, repo, mynode, orig, fcd, fco, fca,
                       labels=labels)