Mercurial > hg
comparison hgext/largefiles/lfutil.py @ 47716:2d0717b135c9
largefile: use `update_file` instead of `normal` in `synclfdirstate`
This is the newer, more semantic API.
This was the last call to `normal` in largefile.
Differential Revision: https://phab.mercurial-scm.org/D11158
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 02:46:09 +0200 |
parents | 9a7d723a427a |
children | 0ed2f74f6e3a |
comparison
equal
deleted
inserted
replaced
47715:108c4c5673a6 | 47716:2d0717b135c9 |
---|---|
560 if state == b'n': | 560 if state == b'n': |
561 if normallookup or mtime < 0 or not repo.wvfs.exists(lfile): | 561 if normallookup or mtime < 0 or not repo.wvfs.exists(lfile): |
562 # state 'n' doesn't ensure 'clean' in this case | 562 # state 'n' doesn't ensure 'clean' in this case |
563 lfdirstate.normallookup(lfile) | 563 lfdirstate.normallookup(lfile) |
564 else: | 564 else: |
565 lfdirstate.normal(lfile) | 565 lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=True) |
566 elif state == b'm': | 566 elif state == b'm': |
567 lfdirstate.normallookup(lfile) | 567 lfdirstate.normallookup(lfile) |
568 elif state == b'r': | 568 elif state == b'r': |
569 lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False) | 569 lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False) |
570 elif state == b'a': | 570 elif state == b'a': |