This is the newer, more semantic API.
This was the last call to normal in largefile.
( )
Alphare | |
pulkit |
hg-reviewers |
This is the newer, more semantic API.
This was the last call to normal in largefile.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | hgext/largefiles/lfutil.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
6c58bb0ea939 | 8d5cba526f9e | Pierre-Yves David | Jul 18 2021, 8:46 PM |
else: | else: | ||||
stat = repo.dirstate._map[lfstandin] | stat = repo.dirstate._map[lfstandin] | ||||
state, mtime = stat.state, stat.mtime | state, mtime = stat.state, stat.mtime | ||||
if state == b'n': | if state == b'n': | ||||
if normallookup or mtime < 0 or not repo.wvfs.exists(lfile): | if normallookup or mtime < 0 or not repo.wvfs.exists(lfile): | ||||
# state 'n' doesn't ensure 'clean' in this case | # state 'n' doesn't ensure 'clean' in this case | ||||
lfdirstate.normallookup(lfile) | lfdirstate.normallookup(lfile) | ||||
else: | else: | ||||
lfdirstate.normal(lfile) | lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=True) | ||||
elif state == b'm': | elif state == b'm': | ||||
lfdirstate.normallookup(lfile) | lfdirstate.normallookup(lfile) | ||||
elif state == b'r': | elif state == b'r': | ||||
lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False) | lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False) | ||||
elif state == b'a': | elif state == b'a': | ||||
lfdirstate.add(lfile) | lfdirstate.add(lfile) | ||||