[Commented On] D11020: context: use `dirstate.set_untracked` in `context.forget`
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Sun Jul 11 11:19:37 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 29165.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11020?vs=28957&id=29165
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11020/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11020
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1711,13 +1711,9 @@
uipath = lambda f: ds.pathto(pathutil.join(prefix, f))
rejected = []
for f in files:
- if f not in ds:
+ if not ds.set_untracked(f):
self._repo.ui.warn(_(b"%s not tracked!\n") % uipath(f))
rejected.append(f)
- elif ds[f] != b'a':
- ds.remove(f)
- else:
- ds.drop(f)
return rejected
def copy(self, source, dest):
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210711/7121280a/attachment-0002.html>
More information about the Mercurial-patches
mailing list