# HG changeset patch # User Pierre-Yves David # Date 1677028091 -3600 # Node ID 3f3fca243dcaf3f0089372eec12d3195fcb20e7c # Parent f35cf52acabd9d72d10ccbc122de00d043d7cf74 dirstate: drop `identity` from the public API We no longer needs it. diff -r f35cf52acabd -r 3f3fca243dca mercurial/dirstate.py --- a/mercurial/dirstate.py Thu Feb 23 15:32:27 2023 +0100 +++ b/mercurial/dirstate.py Wed Feb 22 02:08:11 2023 +0100 @@ -1011,14 +1011,6 @@ self._dirty = True - def identity(self): - """Return identity of dirstate itself to detect changing in storage - - If identity of previous dirstate is equal to this, writing - changes based on the former dirstate out can keep consistency. - """ - return self._map.identity - def write(self, tr): if not self._dirty: return diff -r f35cf52acabd -r 3f3fca243dca mercurial/interfaces/dirstate.py --- a/mercurial/interfaces/dirstate.py Thu Feb 23 15:32:27 2023 +0100 +++ b/mercurial/interfaces/dirstate.py Wed Feb 22 02:08:11 2023 +0100 @@ -166,13 +166,6 @@ def rebuild(parent, allfiles, changedfiles=None): pass - def identity(): - """Return identity of dirstate itself to detect changing in storage - - If identity of previous dirstate is equal to this, writing - changes based on the former dirstate out can keep consistency. - """ - def write(tr): pass