##// END OF EJS Templates
Allow reverting a deleted file with two parents...
Matt Mackall -
r1448:182879d7 default
parent child Browse files
Show More
@@ -556,11 +556,7 b' class localrepository:'
556 556 self.dirstate.update([f], "r")
557 557
558 558 def undelete(self, list):
559 pl = self.dirstate.parents()
560 if pl[1] != nullid:
561 self.ui.warn("aborting: outstanding uncommitted merges\n")
562 return 1
563 p = pl[0]
559 p = self.dirstate.parents()[0]
564 560 mn = self.changelog.read(p)[0]
565 561 mf = self.manifest.readflags(mn)
566 562 m = self.manifest.read(mn)
General Comments 0
You need to be logged in to leave comments. Login now