Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/lfcommands.py @ 48106:82e142b9ad18
dirstate-item: use item's property instead of `state` in largefile
Differential Revision: https://phab.mercurial-scm.org/D11543
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 29 Sep 2021 18:39:02 +0200 |
parents | af84aa1a66f1 |
children | 5ced12cfa41b |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Wed Sep 29 18:37:54 2021 +0200 +++ b/hgext/largefiles/lfcommands.py Wed Sep 29 18:39:02 2021 +0200 @@ -540,7 +540,7 @@ expecthash = lfutil.readasstandin(wctx[standin]) if expecthash != b'': if lfile not in wctx: # not switched to normal file - if repo.dirstate[standin] != b'?': + if repo.dirstate.get_entry(standin).any_tracked: wvfs.unlinkpath(lfile, ignoremissing=True) else: dropped.add(lfile)