##// END OF EJS Templates
dirstate: add exception when calling setparent without begin/end (API)...
Durham Goode -
r22407:d259322a default
parent child Browse files
Show More
@@ -256,6 +256,10 b' class dirstate(object):'
256
256
257 See localrepo.setparents()
257 See localrepo.setparents()
258 """
258 """
259 if self._parentwriters == 0:
260 raise ValueError("cannot set dirstate parent without " +
261 " calling dirstate.begingparentchange")
262
259 self._dirty = self._dirtypl = True
263 self._dirty = self._dirtypl = True
260 oldp2 = self._pl[1]
264 oldp2 = self._pl[1]
261 self._pl = p1, p2
265 self._pl = p1, p2
General Comments 0
You need to be logged in to leave comments. Login now