equal
deleted
inserted
replaced
741 """ |
741 """ |
742 |
742 |
743 #track the base of the current delta log |
743 #track the base of the current delta log |
744 r = self.count() |
744 r = self.count() |
745 t = r - 1 |
745 t = r - 1 |
746 node = nullid |
746 node = None |
747 |
747 |
748 base = prev = -1 |
748 base = prev = -1 |
749 start = end = measure = 0 |
749 start = end = measure = 0 |
750 if r: |
750 if r: |
751 base = self.base(t) |
751 base = self.base(t) |
814 start = self.start(base) |
814 start = self.start(base) |
815 end = self.end(t) |
815 end = self.end(t) |
816 |
816 |
817 dfh.close() |
817 dfh.close() |
818 ifh.close() |
818 ifh.close() |
|
819 if node is None: |
|
820 raise RevlogError(_("group to be added is empty")) |
819 return node |
821 return node |
820 |
822 |
821 def strip(self, rev, minlink): |
823 def strip(self, rev, minlink): |
822 if self.count() == 0 or rev >= self.count(): |
824 if self.count() == 0 or rev >= self.count(): |
823 return |
825 return |