Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
47647:f16958beb27b | 47648:093b1df410c9 |
---|---|
148 standinname, | 148 standinname, |
149 hash=b'', | 149 hash=b'', |
150 executable=lfutil.getexecutable(repo.wjoin(f)), | 150 executable=lfutil.getexecutable(repo.wjoin(f)), |
151 ) | 151 ) |
152 standins.append(standinname) | 152 standins.append(standinname) |
153 if lfdirstate[f] == b'r': | 153 lfdirstate.set_tracked(f) |
154 lfdirstate.normallookup(f) | |
155 else: | |
156 lfdirstate.add(f) | |
157 lfdirstate.write() | 154 lfdirstate.write() |
158 bad += [ | 155 bad += [ |
159 lfutil.splitstandin(f) | 156 lfutil.splitstandin(f) |
160 for f in repo[None].add(standins) | 157 for f in repo[None].add(standins) |
161 if f in m.files() | 158 if f in m.files() |