##// END OF EJS Templates
dirstate: enforce holding the lock while doing any changes...
marmoute -
r50860:380ed77e default
parent child Browse files
Show More
@@ -158,6 +158,9 b' class dirstate:'
158 the incoherent dirstate won't be written when wlock is
158 the incoherent dirstate won't be written when wlock is
159 released.
159 released.
160 """
160 """
161 if repo.currentwlock() is None:
162 msg = b"changing parents without holding the wlock"
163 raise error.ProgrammingError(msg)
161 if self._invalidated_context:
164 if self._invalidated_context:
162 msg = "trying to use an invalidated dirstate before it has reset"
165 msg = "trying to use an invalidated dirstate before it has reset"
163 raise error.ProgrammingError(msg)
166 raise error.ProgrammingError(msg)
General Comments 0
You need to be logged in to leave comments. Login now