##// END OF EJS Templates
commit: tidy up mergestate slightly
Matt Mackall -
r8503:90f86a53 default
parent child Browse files
Show More
@@ -809,16 +809,15 b' class localrepository(repo.repository):'
809 if editor:
809 if editor:
810 wctx._text = editor(self, wctx,
810 wctx._text = editor(self, wctx,
811 changes[1], changes[0], changes[2])
811 changes[1], changes[0], changes[2])
812 ret = self.commitctx(wctx, True)
812
813
813 ret = self.commitctx(wctx, True)
814 # update dirstate and mergestate
814 ms.reset()
815
816 # update dirstate
817 for f in changes[0] + changes[1]:
815 for f in changes[0] + changes[1]:
818 self.dirstate.normal(f)
816 self.dirstate.normal(f)
819 for f in changes[2]:
817 for f in changes[2]:
820 self.dirstate.forget(f)
818 self.dirstate.forget(f)
821 self.dirstate.setparents(ret)
819 self.dirstate.setparents(ret)
820 ms.reset()
822
821
823 return ret
822 return ret
824
823
General Comments 0
You need to be logged in to leave comments. Login now