Show More
@@ -304,9 +304,9 b' def emitrevisions(store, nodes, nodesord' | |||
|
304 | 304 | |
|
305 | 305 | ``rawsizefn`` (optional) |
|
306 | 306 | Callable receiving a revision number and returning the length of the |
|
307 |
``store.r |
|
|
307 | ``store.rawdata(rev)``. | |
|
308 | 308 | |
|
309 |
If not defined, ``len(store.r |
|
|
309 | If not defined, ``len(store.rawdata(rev))`` will be called. | |
|
310 | 310 | |
|
311 | 311 | ``revdifffn`` (optional) |
|
312 | 312 | Callable receiving a pair of revision numbers that returns a delta |
@@ -422,7 +422,7 b' def emitrevisions(store, nodes, nodesord' | |||
|
422 | 422 | if revisiondata: |
|
423 | 423 | if store.iscensored(baserev) or store.iscensored(rev): |
|
424 | 424 | try: |
|
425 |
revision = store.r |
|
|
425 | revision = store.rawdata(node) | |
|
426 | 426 | except error.CensoredNodeError as e: |
|
427 | 427 | revision = e.tombstone |
|
428 | 428 | |
@@ -430,19 +430,18 b' def emitrevisions(store, nodes, nodesord' | |||
|
430 | 430 | if rawsizefn: |
|
431 | 431 | baserevisionsize = rawsizefn(baserev) |
|
432 | 432 | else: |
|
433 |
baserevisionsize = len(store.r |
|
|
434 | raw=True)) | |
|
433 | baserevisionsize = len(store.rawdata(baserev)) | |
|
435 | 434 | |
|
436 | 435 | elif (baserev == nullrev |
|
437 | 436 | and deltamode != repository.CG_DELTAMODE_PREV): |
|
438 |
revision = store.r |
|
|
437 | revision = store.rawdata(node) | |
|
439 | 438 | available.add(rev) |
|
440 | 439 | else: |
|
441 | 440 | if revdifffn: |
|
442 | 441 | delta = revdifffn(baserev, rev) |
|
443 | 442 | else: |
|
444 |
delta = mdiff.textdiff(store.r |
|
|
445 |
store.r |
|
|
443 | delta = mdiff.textdiff(store.rawdata(baserev), | |
|
444 | store.rawdata(rev)) | |
|
446 | 445 | |
|
447 | 446 | available.add(rev) |
|
448 | 447 |
General Comments 0
You need to be logged in to leave comments.
Login now