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