equal
deleted
inserted
replaced
477 def wrappedcgfn(*args, **kwargs): |
477 def wrappedcgfn(*args, **kwargs): |
478 repo = args[1] |
478 repo = args[1] |
479 if repo.ui.has_section(_NARROWACL_SECTION): |
479 if repo.ui.has_section(_NARROWACL_SECTION): |
480 getbundlechangegrouppart_narrow( |
480 getbundlechangegrouppart_narrow( |
481 *args, **applyacl_narrow(repo, kwargs)) |
481 *args, **applyacl_narrow(repo, kwargs)) |
482 elif kwargs.get('narrow', False): |
482 elif kwargs.get(r'narrow', False): |
483 getbundlechangegrouppart_narrow(*args, **kwargs) |
483 getbundlechangegrouppart_narrow(*args, **kwargs) |
484 else: |
484 else: |
485 origcgfn(*args, **kwargs) |
485 origcgfn(*args, **kwargs) |
486 exchange.getbundle2partsmapping['changegroup'] = wrappedcgfn |
486 exchange.getbundle2partsmapping['changegroup'] = wrappedcgfn |
487 |
487 |