# HG changeset patch # User Anton Shestakov # Date 1656940573 -14400 # Node ID 3c4d36a96a3e20091fa889604bd4d214aa5b1907 # Parent 3b8fce9a74df6a06d445cf9c33b974b79772965d 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'. diff -r 3b8fce9a74df -r 3c4d36a96a3e 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