# HG changeset patch # User Pierre-Yves David # Date 1676772884 -3600 # 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 -r b900f40c343e -r c4b17bc78d8c hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Sun Feb 19 00:04:53 2023 -0500 +++ b/hgext/largefiles/overrides.py Sun Feb 19 03:14:44 2023 +0100 @@ -1819,7 +1819,14 @@ # 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)