changeset 22407 | d259322a394b |
parent 22404 | 12bc7f06fc41 |
child 22459 | 0c7b018d3258 |
--- a/mercurial/dirstate.py Fri Sep 05 15:36:56 2014 -0700 +++ b/mercurial/dirstate.py Fri Sep 05 11:37:44 2014 -0700 @@ -256,6 +256,10 @@ See localrepo.setparents() """ + if self._parentwriters == 0: + raise ValueError("cannot set dirstate parent without " + + " calling dirstate.begingparentchange") + self._dirty = self._dirtypl = True oldp2 = self._pl[1] self._pl = p1, p2