Mercurial > hg
comparison mercurial/exchange.py @ 38807:98df52d5042c
exchange: make narrow ACL presence imply narrow=True
And refactor the logic for determining when to invoke our custom
changegroup part function so it is only conditional on
narrow being set. This makes it more obvious under which
conditions we should invoke the custom implementation.
Also use raw strings so **kwargs works on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D4013
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 28 Jul 2018 17:33:20 -0700 |
parents | afb442f58cbf |
children | d99083996398 |
comparison
equal
deleted
inserted
replaced
38806:5742d0428ed9 | 38807:98df52d5042c |
---|---|
1870 _("The following includes are not accessible for {}: {}") | 1870 _("The following includes are not accessible for {}: {}") |
1871 .format(username, invalid_includes)) | 1871 .format(username, invalid_includes)) |
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): |
1881 """Compute the shape of a narrowed DAG. | 1883 """Compute the shape of a narrowed DAG. |
1882 | 1884 |