##// END OF EJS Templates
narrow: only send the narrowspecs back if ACL in play...
Pulkit Goyal -
r40373:cb516a85 default
parent child Browse files
Show More
@@ -1907,6 +1907,7 b' def applynarrowacl(repo, kwargs):'
1907 new_args = {}
1907 new_args = {}
1908 new_args.update(kwargs)
1908 new_args.update(kwargs)
1909 new_args[r'narrow'] = True
1909 new_args[r'narrow'] = True
1910 new_args[r'narrow_acl'] = True
1910 new_args[r'includepats'] = req_includes
1911 new_args[r'includepats'] = req_includes
1911 if req_excludes:
1912 if req_excludes:
1912 new_args[r'excludepats'] = req_excludes
1913 new_args[r'excludepats'] = req_excludes
@@ -2171,7 +2172,8 b' def _getbundlechangegrouppart(bundler, r'
2171 if 'treemanifest' in repo.requirements:
2172 if 'treemanifest' in repo.requirements:
2172 part.addparam('treemanifest', '1')
2173 part.addparam('treemanifest', '1')
2173
2174
2174 if kwargs.get(r'narrow', False) and (include or exclude):
2175 if (kwargs.get(r'narrow', False) and kwargs.get('narrow_acl', False)
2176 and (include or exclude)):
2175 narrowspecpart = bundler.newpart('narrow:spec')
2177 narrowspecpart = bundler.newpart('narrow:spec')
2176 if include:
2178 if include:
2177 narrowspecpart.addparam(
2179 narrowspecpart.addparam(
@@ -86,7 +86,6 b' Rebase interrupts on conflicting changes'
86
86
87 $ hg update -q 'desc("conflicting outside/f1")'
87 $ hg update -q 'desc("conflicting outside/f1")'
88 $ hg phase -f -d .
88 $ hg phase -f -d .
89 no phases changed
90 $ hg rebase -d 'desc("modify outside/f1")'
89 $ hg rebase -d 'desc("modify outside/f1")'
91 rebasing 4:707c035aadb6 "conflicting outside/f1"
90 rebasing 4:707c035aadb6 "conflicting outside/f1"
92 abort: conflict in file 'outside/f1' is outside narrow clone
91 abort: conflict in file 'outside/f1' is outside narrow clone
@@ -137,7 +137,6 b' Pull down the newly added upstream revis'
137 adding file changes
137 adding file changes
138 added 5 changesets with 4 changes to 2 files
138 added 5 changesets with 4 changes to 2 files
139 new changesets *:* (glob)
139 new changesets *:* (glob)
140 3 local changesets published
141 (run 'hg update' to get a working copy)
140 (run 'hg update' to get a working copy)
142 $ hg update -r 'desc("add wider")'
141 $ hg update -r 'desc("add wider")'
143 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
142 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now