Mercurial > hg-stable
changeset 47700:9217ab0ecdb8
largefile: use `update_file` instead of `remove` in `synclfdirstate`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11142
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 03:20:28 +0200 |
parents | 034979d24c7b |
children | 0e87c90f1cd5 |
files | hgext/largefiles/lfutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Mon Jul 19 03:25:21 2021 +0200 +++ b/hgext/largefiles/lfutil.py Mon Jul 19 03:20:28 2021 +0200 @@ -564,7 +564,7 @@ elif state == b'm': lfdirstate.normallookup(lfile) elif state == b'r': - lfdirstate.remove(lfile) + lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False) elif state == b'a': lfdirstate.add(lfile)