equal
deleted
inserted
replaced
767 # and manifest id to the changelog |
767 # and manifest id to the changelog |
768 self.ui.status("committing merge changeset\n") |
768 self.ui.status("committing merge changeset\n") |
769 if co == cn: cn = -1 |
769 if co == cn: cn = -1 |
770 |
770 |
771 edittext = "\nHG: merge resolve\n" + \ |
771 edittext = "\nHG: merge resolve\n" + \ |
772 "HG: manifest hash %s\n" % hex(mnode) + \ |
772 "HG: manifest hash %s\n" % hex(node) + \ |
773 "".join(["HG: changed %s\n" % f for f in new]) |
773 "".join(["HG: changed %s\n" % f for f in new]) |
774 edittext = self.ui.edit(edittext) |
774 edittext = self.ui.edit(edittext) |
775 n = self.changelog.add(node, new, edittext, tr, co, cn) |
775 n = self.changelog.add(node, new, edittext, tr, co, cn) |
776 |
776 |
777 tr.close() |
777 tr.close() |
832 return br |
832 return br |
833 |
833 |
834 def between(self, pairs): |
834 def between(self, pairs): |
835 n = "\n".join(["-".join(map(hex, p)) for p in pairs]) |
835 n = "\n".join(["-".join(map(hex, p)) for p in pairs]) |
836 d = self.do_cmd("between", pairs=n).read() |
836 d = self.do_cmd("between", pairs=n).read() |
837 p = [ map(bin, l.split(" ")) for l in d.splitlines() ] |
837 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] |
838 return p |
838 return p |
839 |
839 |
840 def changegroup(self, nodes): |
840 def changegroup(self, nodes): |
841 n = " ".join(map(hex, nodes)) |
841 n = " ".join(map(hex, nodes)) |
842 zd = zlib.decompressobj() |
842 zd = zlib.decompressobj() |