changeset 49385:3c4d36a96a3e stable

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'.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 04 Jul 2022 17:16:13 +0400
parents 3b8fce9a74df
children 1e12ea7d8435
files hgext/git/dirstate.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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