[Updated] D11345: dirstate: drop the deprecated `normallookup` method
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Aug 27 12:39:54 UTC 2021
Closed by commit rHG50bed873a765: dirstate: drop the deprecated `normallookup` method (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/D11345?vs=30061&id=30103
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11345/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11345
AFFECTED FILES
contrib/dirstatenonnormalcheck.py
hgext/sparse.py
mercurial/dirstate.py
mercurial/interfaces/dirstate.py
CHANGE DETAILS
diff --git a/mercurial/interfaces/dirstate.py b/mercurial/interfaces/dirstate.py
--- a/mercurial/interfaces/dirstate.py
+++ b/mercurial/interfaces/dirstate.py
@@ -132,9 +132,6 @@
def copies():
pass
- def normallookup(f):
- '''Mark a file normal, but possibly dirty.'''
-
def otherparent(f):
'''Mark as coming from the other parent, always dirty.'''
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -720,24 +720,6 @@
# modifications that happen within the same timeslot.
self._lastnormaltime = mtime
- def normallookup(self, f):
- '''Mark a file normal, but possibly dirty.'''
- if self.pendingparentchange():
- util.nouideprecwarn(
- b"do not use `normallookup` inside of update/merge context."
- b" Use `update_file` or `update_file_p1`",
- b'6.0',
- stacklevel=2,
- )
- else:
- util.nouideprecwarn(
- b"do not use `normallookup` outside of update/merge context."
- b" Use `set_possibly_dirty` or `set_tracked`",
- b'6.0',
- stacklevel=2,
- )
- self._normallookup(f)
-
def _normallookup(self, f):
'''Mark a file normal, but possibly dirty.'''
if self.in_merge:
diff --git a/hgext/sparse.py b/hgext/sparse.py
--- a/hgext/sparse.py
+++ b/hgext/sparse.py
@@ -258,7 +258,6 @@
b'set_tracked',
b'set_untracked',
b'add',
- b'normallookup',
b'copy',
b'remove',
b'merge',
diff --git a/contrib/dirstatenonnormalcheck.py b/contrib/dirstatenonnormalcheck.py
--- a/contrib/dirstatenonnormalcheck.py
+++ b/contrib/dirstatenonnormalcheck.py
@@ -59,7 +59,6 @@
if paranoid:
# We don't do all these checks when paranoid is disable as it would
# make the extension run very slowly on large repos
- extensions.wrapfunction(dirstatecl, 'normallookup', _checkdirstate)
extensions.wrapfunction(dirstatecl, 'otherparent', _checkdirstate)
extensions.wrapfunction(dirstatecl, 'write', _checkdirstate)
extensions.wrapfunction(dirstatecl, 'add', _checkdirstate)
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/20210827/f62e0909/attachment-0002.html>
More information about the Mercurial-patches
mailing list