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.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | hgext/largefiles/lfutil.py (2 lines) |
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) | ||||