changeset 47712:95b864a670df

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 02:38:40 +0200
parents b492bc018011
children 04d4c01e83fa
files hgext/largefiles/lfutil.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):