--- a/mercurial/dirstate.py Sat Oct 15 15:49:05 2005 -0700 +++ b/mercurial/dirstate.py Tue Oct 18 00:43:19 2005 -0700 @@ -117,6 +117,8 @@ self.dirty = 1 def setparents(self, p1, p2=nullid): + if not self.pl: + self.read() self.markdirty() self.pl = p1, p2