Mercurial > hg
comparison hgext/largefiles/lfutil.py @ 47723:0ed2f74f6e3a
largefile: replace the `normallookup` call when creating a new lfdirstate
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11165
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 02:44:11 +0200 |
parents | 2d0717b135c9 |
children | b0a39b666e2d |
comparison
equal
deleted
inserted
replaced
47722:47dce5a99eab | 47723:0ed2f74f6e3a |
---|---|
227 ) | 227 ) |
228 | 228 |
229 if len(standins) > 0: | 229 if len(standins) > 0: |
230 vfs.makedirs(lfstoredir) | 230 vfs.makedirs(lfstoredir) |
231 | 231 |
232 for standin in standins: | 232 with lfdirstate.parentchange(): |
233 lfile = splitstandin(standin) | 233 for standin in standins: |
234 lfdirstate.normallookup(lfile) | 234 lfile = splitstandin(standin) |
235 lfdirstate.update_file( | |
236 lfile, p1_tracked=True, wc_tracked=True, possibly_dirty=True | |
237 ) | |
235 return lfdirstate | 238 return lfdirstate |
236 | 239 |
237 | 240 |
238 def lfdirstatestatus(lfdirstate, repo): | 241 def lfdirstatestatus(lfdirstate, repo): |
239 pctx = repo[b'.'] | 242 pctx = repo[b'.'] |