git: add a missing reset_copy keyword argument to dirstate.set_tracked() stable
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 04 Jul 2022 17:16:13 +0400
branchstable
changeset 49385 3c4d36a96a3e
parent 49384 3b8fce9a74df
child 49386 1e12ea7d8435
git: add a missing reset_copy keyword argument to dirstate.set_tracked() Since nothing else in hgext/git supports copies yet, the best I can do is avoid TypeError: set_tracked() got an unexpected keyword argument 'reset_copy'.
hgext/git/dirstate.py
--- a/hgext/git/dirstate.py	Mon Jul 04 15:01:52 2022 +0400
+++ b/hgext/git/dirstate.py	Mon Jul 04 17:16:13 2022 +0400
@@ -330,7 +330,8 @@
         # TODO: figure out a strategy for saving index backups.
         pass
 
-    def set_tracked(self, f):
+    def set_tracked(self, f, reset_copy=False):
+        # TODO: support copies and reset_copy=True
         uf = pycompat.fsdecode(f)
         if uf in self.git.index:
             return False