Mercurial > hg
comparison hgext/narrow/narrowbundle2.py @ 36348:f3b9377d6aea
narrowbundle2: this dict contains native strings, look kws up as such
We could also do a byteskwargs dance, but that seems silly given that
we only need this one element.
Differential Revision: https://phab.mercurial-scm.org/D2368
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 21 Feb 2018 11:58:41 -0500 |
parents | 2ad527f7d27a |
children | 658d694a656e |
comparison
equal
deleted
inserted
replaced
36347:f6ddbcff5d7b | 36348:f3b9377d6aea |
---|---|
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 |