largefile: respect the `normal` signature
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 02:38:40 +0200
changeset 47712 95b864a670df
parent 47711 b492bc018011
child 47713 04d4c01e83fa
largefile: respect the `normal` signature The `parentfiledata` parameter was missing, we throw it away because I am not sure what to do with it in the largefile case. Differential Revision: https://phab.mercurial-scm.org/D11154
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Mon Jul 19 02:05:24 2021 +0200
+++ b/hgext/largefiles/lfutil.py	Mon Jul 19 02:38:40 2021 +0200
@@ -168,7 +168,9 @@
     def set_untracked(self, f):
         return super(largefilesdirstate, self).set_untracked(unixpath(f))
 
-    def normal(self, f):
+    def normal(self, f, parentfiledata=None):
+        # not sure if we should pass the `parentfiledata` down or throw it
+        # away. So throwing it away to stay on the safe side.
         return super(largefilesdirstate, self).normal(unixpath(f))
 
     def remove(self, f):