Mercurial > hg
diff hgext/largefiles/overrides.py @ 47648:093b1df410c9
largefile: use `set_tracked` in the `hg add` overwrite
This is the new shiny API.
Differential Revision: https://phab.mercurial-scm.org/D11104
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 01:23:30 +0200 |
parents | d67732a4b58a |
children | 4b17971f0181 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Thu Jul 08 01:23:06 2021 +0200 +++ b/hgext/largefiles/overrides.py Thu Jul 08 01:23:30 2021 +0200 @@ -150,10 +150,7 @@ executable=lfutil.getexecutable(repo.wjoin(f)), ) standins.append(standinname) - if lfdirstate[f] == b'r': - lfdirstate.normallookup(f) - else: - lfdirstate.add(f) + lfdirstate.set_tracked(f) lfdirstate.write() bad += [ lfutil.splitstandin(f)