Show More
@@ -674,8 +674,23 b' class cgpacker(object):' | |||||
674 | progress.update(r + 1) |
|
674 | progress.update(r + 1) | |
675 | prev, curr = revs[r], revs[r + 1] |
|
675 | prev, curr = revs[r], revs[r + 1] | |
676 | linknode = lookup(store.node(curr)) |
|
676 | linknode = lookup(store.node(curr)) | |
677 | for c in self._revchunk(store, ischangelog, curr, prev, linknode): |
|
677 | ||
678 | yield c |
|
678 | if self._ellipses: | |
|
679 | delta = self._revisiondeltanarrow(store, ischangelog, | |||
|
680 | curr, prev, linknode) | |||
|
681 | else: | |||
|
682 | delta = self._revisiondeltanormal(store, ischangelog, | |||
|
683 | curr, prev, linknode) | |||
|
684 | ||||
|
685 | if not delta: | |||
|
686 | continue | |||
|
687 | ||||
|
688 | meta = self._builddeltaheader(delta) | |||
|
689 | l = len(meta) + sum(len(x) for x in delta.deltachunks) | |||
|
690 | yield chunkheader(l) | |||
|
691 | yield meta | |||
|
692 | for x in delta.deltachunks: | |||
|
693 | yield x | |||
679 |
|
694 | |||
680 | if progress: |
|
695 | if progress: | |
681 | progress.complete() |
|
696 | progress.complete() | |
@@ -995,24 +1010,6 b' class cgpacker(object):' | |||||
995 | self._verbosenote(_('%8.i %s\n') % (size, fname)) |
|
1010 | self._verbosenote(_('%8.i %s\n') % (size, fname)) | |
996 | progress.complete() |
|
1011 | progress.complete() | |
997 |
|
1012 | |||
998 | def _revchunk(self, store, ischangelog, rev, prev, linknode): |
|
|||
999 | if self._ellipses: |
|
|||
1000 | fn = self._revisiondeltanarrow |
|
|||
1001 | else: |
|
|||
1002 | fn = self._revisiondeltanormal |
|
|||
1003 |
|
||||
1004 | delta = fn(store, ischangelog, rev, prev, linknode) |
|
|||
1005 | if not delta: |
|
|||
1006 | return |
|
|||
1007 |
|
||||
1008 | meta = self._builddeltaheader(delta) |
|
|||
1009 | l = len(meta) + sum(len(x) for x in delta.deltachunks) |
|
|||
1010 |
|
||||
1011 | yield chunkheader(l) |
|
|||
1012 | yield meta |
|
|||
1013 | for x in delta.deltachunks: |
|
|||
1014 | yield x |
|
|||
1015 |
|
||||
1016 | def _revisiondeltanormal(self, store, ischangelog, rev, prev, linknode): |
|
1013 | def _revisiondeltanormal(self, store, ischangelog, rev, prev, linknode): | |
1017 | node = store.node(rev) |
|
1014 | node = store.node(rev) | |
1018 | p1, p2 = store.parentrevs(rev) |
|
1015 | p1, p2 = store.parentrevs(rev) |
General Comments 0
You need to be logged in to leave comments.
Login now