Show More
@@ -119,7 +119,7 b' def debugindex(orig, ui, repo, file_=Non' | |||||
119 | if format not in (0, 1): |
|
119 | if format not in (0, 1): | |
120 | raise error.Abort(_(b"unknown format %d") % format) |
|
120 | raise error.Abort(_(b"unknown format %d") % format) | |
121 |
|
121 | |||
122 |
generaldelta = r. |
|
122 | generaldelta = r.get_revlog()._format_flags & revlog.FLAG_GENERALDELTA | |
123 | if generaldelta: |
|
123 | if generaldelta: | |
124 | basehdr = b' delta' |
|
124 | basehdr = b' delta' | |
125 | else: |
|
125 | else: | |
@@ -144,9 +144,9 b' def debugindex(orig, ui, repo, file_=Non' | |||||
144 | for i in r: |
|
144 | for i in r: | |
145 | node = r.node(i) |
|
145 | node = r.node(i) | |
146 | if generaldelta: |
|
146 | if generaldelta: | |
147 | base = r.deltaparent(i) |
|
147 | base = r.get_revlog().deltaparent(i) | |
148 | else: |
|
148 | else: | |
149 | base = r.chainbase(i) |
|
149 | base = r.get_revlog().chainbase(i) | |
150 | if format == 0: |
|
150 | if format == 0: | |
151 | try: |
|
151 | try: | |
152 | pp = r.parents(node) |
|
152 | pp = r.parents(node) | |
@@ -156,8 +156,8 b' def debugindex(orig, ui, repo, file_=Non' | |||||
156 | b"% 6d % 9d % 7d % 6d % 7d %s %s %s\n" |
|
156 | b"% 6d % 9d % 7d % 6d % 7d %s %s %s\n" | |
157 | % ( |
|
157 | % ( | |
158 | i, |
|
158 | i, | |
159 | r.start(i), |
|
159 | r.get_revlog().start(i), | |
160 | r.length(i), |
|
160 | r.get_revlog().length(i), | |
161 | base, |
|
161 | base, | |
162 | r.linkrev(i), |
|
162 | r.linkrev(i), | |
163 | short(node), |
|
163 | short(node), | |
@@ -171,10 +171,10 b' def debugindex(orig, ui, repo, file_=Non' | |||||
171 | b"% 6d %04x % 8d % 8d % 8d % 6d % 6d % 6d % 6d %s\n" |
|
171 | b"% 6d %04x % 8d % 8d % 8d % 6d % 6d % 6d % 6d %s\n" | |
172 | % ( |
|
172 | % ( | |
173 | i, |
|
173 | i, | |
174 | r.flags(i), |
|
174 | r.get_revlog().flags(i), | |
175 | r.start(i), |
|
175 | r.get_revlog().start(i), | |
176 | r.length(i), |
|
176 | r.get_revlog().length(i), | |
177 | r.rawsize(i), |
|
177 | r.get_revlog().rawsize(i), | |
178 | base, |
|
178 | base, | |
179 | r.linkrev(i), |
|
179 | r.linkrev(i), | |
180 | pr[0], |
|
180 | pr[0], |
General Comments 0
You need to be logged in to leave comments.
Login now