Mercurial > hg
comparison mercurial/dirstate.py @ 50208:3f3fca243dca
dirstate: drop `identity` from the public API
We no longer needs it.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 22 Feb 2023 02:08:11 +0100 |
parents | fbb4c7117cf1 |
children | df76808d5f21 |
comparison
equal
deleted
inserted
replaced
50207:f35cf52acabd | 50208:3f3fca243dca |
---|---|
1008 ) | 1008 ) |
1009 for f in to_drop: | 1009 for f in to_drop: |
1010 self._map.reset_state(f) | 1010 self._map.reset_state(f) |
1011 | 1011 |
1012 self._dirty = True | 1012 self._dirty = True |
1013 | |
1014 def identity(self): | |
1015 """Return identity of dirstate itself to detect changing in storage | |
1016 | |
1017 If identity of previous dirstate is equal to this, writing | |
1018 changes based on the former dirstate out can keep consistency. | |
1019 """ | |
1020 return self._map.identity | |
1021 | 1013 |
1022 def write(self, tr): | 1014 def write(self, tr): |
1023 if not self._dirty: | 1015 if not self._dirty: |
1024 return | 1016 return |
1025 # make sure we don't request a write of invalidated content | 1017 # make sure we don't request a write of invalidated content |