[Updated] D11110: largefile: use `set_untracked` in the `forget` override

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Jul 19 13:16:42 UTC 2021


Closed by commit rHG2af9709ea13c: largefile: use `set_untracked` in the `forget` override (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11110?vs=29378&id=29436

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11110/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11110

AFFECTED FILES
  hgext/largefiles/overrides.py

CHANGE DETAILS

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -1380,10 +1380,7 @@
     with repo.wlock():
         lfdirstate = lfutil.openlfdirstate(ui, repo)
         for f in forget:
-            if lfdirstate[f] == b'a':
-                lfdirstate.drop(f)
-            else:
-                lfdirstate.remove(f)
+            lfdirstate.set_untracked(f)
         lfdirstate.write()
         standins = [lfutil.standin(f) for f in forget]
         for f in standins:



To: marmoute, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210719/d9738e76/attachment-0002.html>


More information about the Mercurial-patches mailing list