# HG changeset patch # User Pierre-Yves David # Date 2023-02-05 07:38:43 # Node ID c694db2d8876b03b1dd15016b507813d30d977aa # Parent e86262dd903eaf17f59ca159b544c18482a9ca15 largefiles: use `hacky_extension_update_file` in `synclfdirstate` This is what the function is meant for. diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -575,10 +575,14 @@ def getstandinsstate(repo): def synclfdirstate(repo, lfdirstate, lfile, normallookup): lfstandin = standin(lfile) if lfstandin not in repo.dirstate: - lfdirstate.update_file(lfile, p1_tracked=False, wc_tracked=False) + lfdirstate.hacky_extension_update_file( + lfile, + p1_tracked=False, + wc_tracked=False, + ) else: entry = repo.dirstate.get_entry(lfstandin) - lfdirstate.update_file( + lfdirstate.hacky_extension_update_file( lfile, wc_tracked=entry.tracked, p1_tracked=entry.p1_tracked,