Mercurial > hg-stable
changeset 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 | f16958beb27b |
children | 4b17971f0181 |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
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)