Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfutil.py @ 47599:cce51119bfe6
dirstate: add a `set_untracked` method for "hg remove"-like usage
This is a step further toward clarifying the semantic of various dirstate call.
See the justification for adding `set_tracked` for details.
Differential Revision: https://phab.mercurial-scm.org/D11019
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 00:54:40 +0200 |
parents | f927ad5a4e2c |
children | f16958beb27b |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Thu Jul 08 04:32:31 2021 +0200 +++ b/hgext/largefiles/lfutil.py Thu Jul 08 00:54:40 2021 +0200 @@ -165,6 +165,9 @@ def set_tracked(self, f): return super(largefilesdirstate, self).set_tracked(unixpath(f)) + def set_untracked(self, f): + return super(largefilesdirstate, self).set_untracked(unixpath(f)) + def normal(self, f): return super(largefilesdirstate, self).normal(unixpath(f))