Show More
@@ -479,6 +479,19 b' def setup():' | |||
|
479 | 479 | origcgfn(*args, **kwargs) |
|
480 | 480 | exchange.getbundle2partsmapping['changegroup'] = wrappedcgfn |
|
481 | 481 | |
|
482 | # disable rev branch cache exchange when serving a narrow bundle | |
|
483 | # (currently incompatible with that part) | |
|
484 | origrbcfn = exchange.getbundle2partsmapping['cache:rev-branch-cache'] | |
|
485 | def wrappedcgfn(*args, **kwargs): | |
|
486 | repo = args[1] | |
|
487 | if repo.ui.has_section(_NARROWACL_SECTION): | |
|
488 | return | |
|
489 | elif kwargs.get(r'narrow', False): | |
|
490 | return | |
|
491 | else: | |
|
492 | origrbcfn(*args, **kwargs) | |
|
493 | exchange.getbundle2partsmapping['cache:rev-branch-cache'] = wrappedcgfn | |
|
494 | ||
|
482 | 495 | # Extend changegroup receiver so client can fixup after widen requests. |
|
483 | 496 | origcghandler = bundle2.parthandlermapping['changegroup'] |
|
484 | 497 | def wrappedcghandler(op, inpart): |
General Comments 0
You need to be logged in to leave comments.
Login now