##// 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 self.dirstate.update([f], "r")
556 self.dirstate.update([f], "r")
557
557
558 def undelete(self, list):
558 def undelete(self, list):
559 pl = self.dirstate.parents()
559 p = self.dirstate.parents()[0]
560 if pl[1] != nullid:
561 self.ui.warn("aborting: outstanding uncommitted merges\n")
562 return 1
563 p = pl[0]
564 mn = self.changelog.read(p)[0]
560 mn = self.changelog.read(p)[0]
565 mf = self.manifest.readflags(mn)
561 mf = self.manifest.readflags(mn)
566 m = self.manifest.read(mn)
562 m = self.manifest.read(mn)
General Comments 0
You need to be logged in to leave comments. Login now