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