# HG changeset patch # User Pierre-Yves David # Date 2023-02-19 02:14:44 # Node ID c4b17bc78d8c6bfaf6744da7e9efae39918a3860 # Parent b900f40c343ea9038e7647f9db303be00fb10a94 large-files: use `hacky_extension_update_file` one more time This override is about merging and can be used in a `changing_parents` context. So lets use the method dedicated to hacky stuff when doing hacky stuff. diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -1819,7 +1819,14 @@ def mergeupdate(orig, repo, node, branch # mark all clean largefiles as dirty, just in case the update gets # interrupted before largefiles and lfdirstate are synchronized for lfile in oldclean: - lfdirstate.set_possibly_dirty(lfile) + entry = lfdirstate.get_entry(lfile) + lfdirstate.hacky_extension_update_file( + lfile, + wc_tracked=entry.tracked, + p1_tracked=entry.p1_tracked, + p2_info=entry.p2_info, + possibly_dirty=True, + ) lfdirstate.write(repo.currenttransaction()) oldstandins = lfutil.getstandinsstate(repo)