hgext/largefiles/lfutil.py
changeset 26749 4a82cb5c1dc8
parent 26627 832c98d79587
child 26817 b68797f244e4
--- a/hgext/largefiles/lfutil.py	Sat Oct 17 01:15:34 2015 +0900
+++ b/hgext/largefiles/lfutil.py	Sat Oct 17 01:15:34 2015 +0900
@@ -110,6 +110,11 @@
         return super(largefilesdirstate, self).normallookup(unixpath(f))
     def _ignore(self, f):
         return False
+    def write(self, tr=False):
+        # (1) disable PENDING mode always
+        #     (lfdirstate isn't yet managed as a part of the transaction)
+        # (2) avoid develwarn 'use dirstate.write with ....'
+        super(largefilesdirstate, self).write(None)
 
 def openlfdirstate(ui, repo, create=True):
     '''