hgext/narrow/narrowbundle2.py
changeset 36348 f3b9377d6aea
parent 36209 2ad527f7d27a
child 36349 658d694a656e
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