Show More
@@ -361,11 +361,10 b' def applyacl_narrow(repo, kwargs):' | |||||
361 | def _handlechangespec_2(op, inpart): |
|
361 | def _handlechangespec_2(op, inpart): | |
362 | includepats = set(inpart.params.get(_SPECPART_INCLUDE, '').splitlines()) |
|
362 | includepats = set(inpart.params.get(_SPECPART_INCLUDE, '').splitlines()) | |
363 | excludepats = set(inpart.params.get(_SPECPART_EXCLUDE, '').splitlines()) |
|
363 | excludepats = set(inpart.params.get(_SPECPART_EXCLUDE, '').splitlines()) | |
364 | narrowspec.save(op.repo, includepats, excludepats) |
|
|||
365 | if not changegroup.NARROW_REQUIREMENT in op.repo.requirements: |
|
364 | if not changegroup.NARROW_REQUIREMENT in op.repo.requirements: | |
366 | op.repo.requirements.add(changegroup.NARROW_REQUIREMENT) |
|
365 | op.repo.requirements.add(changegroup.NARROW_REQUIREMENT) | |
367 | op.repo._writerequirements() |
|
366 | op.repo._writerequirements() | |
368 | op.repo.invalidate(clearfilecache=True) |
|
367 | op.repo.setnarrowpats(includepats, excludepats) | |
369 |
|
368 | |||
370 | @bundle2.parthandler(_CHANGESPECPART) |
|
369 | @bundle2.parthandler(_CHANGESPECPART) | |
371 | def _handlechangespec(op, inpart): |
|
370 | def _handlechangespec(op, inpart): |
@@ -88,7 +88,7 b' def clonenarrowcmd(orig, ui, repo, *args' | |||||
88 | # everything, except what they asked to exclude. |
|
88 | # everything, except what they asked to exclude. | |
89 | includepats = {'path:.'} |
|
89 | includepats = {'path:.'} | |
90 |
|
90 | |||
91 |
|
|
91 | pullop.repo.setnarrowpats(includepats, excludepats) | |
92 |
|
92 | |||
93 | # This will populate 'includepats' etc with the values from the |
|
93 | # This will populate 'includepats' etc with the values from the | |
94 | # narrowspec we just saved. |
|
94 | # narrowspec we just saved. |
General Comments 0
You need to be logged in to leave comments.
Login now