Show More
@@ -1127,6 +1127,16 b' def _bdiffworker(q, blocks, xdiff, ready' | |||||
1127 | with ready: |
|
1127 | with ready: | |
1128 | ready.wait() |
|
1128 | ready.wait() | |
1129 |
|
1129 | |||
|
1130 | def _manifestrevision(repo, mnode): | |||
|
1131 | ml = repo.manifestlog | |||
|
1132 | ||||
|
1133 | if util.safehasattr(ml, 'getstorage'): | |||
|
1134 | store = ml.getstorage(b'') | |||
|
1135 | else: | |||
|
1136 | store = ml._revlog | |||
|
1137 | ||||
|
1138 | return store.revision(mnode) | |||
|
1139 | ||||
1130 | @command('perfbdiff', revlogopts + formatteropts + [ |
|
1140 | @command('perfbdiff', revlogopts + formatteropts + [ | |
1131 | ('', 'count', 1, 'number of revisions to test (when using --startrev)'), |
|
1141 | ('', 'count', 1, 'number of revisions to test (when using --startrev)'), | |
1132 | ('', 'alldata', False, 'test bdiffs for all associated revisions'), |
|
1142 | ('', 'alldata', False, 'test bdiffs for all associated revisions'), | |
@@ -1172,9 +1182,9 b' def perfbdiff(ui, repo, file_, rev=None,' | |||||
1172 | if opts['alldata']: |
|
1182 | if opts['alldata']: | |
1173 | # Load revisions associated with changeset. |
|
1183 | # Load revisions associated with changeset. | |
1174 | ctx = repo[rev] |
|
1184 | ctx = repo[rev] | |
1175 |
mtext = repo |
|
1185 | mtext = _manifestrevision(repo, ctx.manifestnode()) | |
1176 | for pctx in ctx.parents(): |
|
1186 | for pctx in ctx.parents(): | |
1177 |
pman = repo |
|
1187 | pman = _manifestrevision(repo, pctx.manifestnode()) | |
1178 | textpairs.append((pman, mtext)) |
|
1188 | textpairs.append((pman, mtext)) | |
1179 |
|
1189 | |||
1180 | # Load filelog revisions by iterating manifest delta. |
|
1190 | # Load filelog revisions by iterating manifest delta. | |
@@ -1264,9 +1274,9 b' def perfunidiff(ui, repo, file_, rev=Non' | |||||
1264 | if opts['alldata']: |
|
1274 | if opts['alldata']: | |
1265 | # Load revisions associated with changeset. |
|
1275 | # Load revisions associated with changeset. | |
1266 | ctx = repo[rev] |
|
1276 | ctx = repo[rev] | |
1267 |
mtext = repo |
|
1277 | mtext = _manifestrevision(repo, ctx.manifestnode()) | |
1268 | for pctx in ctx.parents(): |
|
1278 | for pctx in ctx.parents(): | |
1269 |
pman = repo |
|
1279 | pman = _manifestrevision(repo, pctx.manifestnode()) | |
1270 | textpairs.append((pman, mtext)) |
|
1280 | textpairs.append((pman, mtext)) | |
1271 |
|
1281 | |||
1272 | # Load filelog revisions by iterating manifest delta. |
|
1282 | # Load filelog revisions by iterating manifest delta. |
General Comments 0
You need to be logged in to leave comments.
Login now