##// END OF EJS Templates
exchange: make narrow ACL presence imply narrow=True...
Gregory Szorc -
r38843:98df52d5 default
parent child Browse files
Show More
@@ -309,9 +309,9 b' def setup():'
309 def wrappedcgfn(*args, **kwargs):
309 def wrappedcgfn(*args, **kwargs):
310 repo = args[1]
310 repo = args[1]
311 if repo.ui.has_section(_NARROWACL_SECTION):
311 if repo.ui.has_section(_NARROWACL_SECTION):
312 getbundlechangegrouppart_narrow(
312 kwargs = exchange.applynarrowacl(repo, kwargs)
313 *args, **exchange.applynarrowacl(repo, kwargs))
313
314 elif kwargs.get(r'narrow', False):
314 if kwargs.get(r'narrow', False):
315 getbundlechangegrouppart_narrow(*args, **kwargs)
315 getbundlechangegrouppart_narrow(*args, **kwargs)
316 else:
316 else:
317 origcgfn(*args, **kwargs)
317 origcgfn(*args, **kwargs)
@@ -1872,9 +1872,11 b' def applynarrowacl(repo, kwargs):'
1872
1872
1873 new_args = {}
1873 new_args = {}
1874 new_args.update(kwargs)
1874 new_args.update(kwargs)
1875 new_args['includepats'] = req_includes
1875 new_args[r'narrow'] = True
1876 new_args[r'includepats'] = req_includes
1876 if req_excludes:
1877 if req_excludes:
1877 new_args['excludepats'] = req_excludes
1878 new_args[r'excludepats'] = req_excludes
1879
1878 return new_args
1880 return new_args
1879
1881
1880 def _computeellipsis(repo, common, heads, known, match, depth=None):
1882 def _computeellipsis(repo, common, heads, known, match, depth=None):
General Comments 0
You need to be logged in to leave comments. Login now