Mercurial > hg > mercurial-source
comparison hgext/narrow/narrowbundle2.py @ 42022:44a51c1c8e17
narrow: move copytonarrowspec() out of setnarrowpats()
I think it was a mistake to write the working copy's narrowspec every
time the store narrowspec is written. This starts separating those
actions.
Differential Revision: https://phab.mercurial-scm.org/D5509
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 29 Dec 2018 23:40:18 -0800 |
parents | 8ecb17b7f432 |
children | 280f7a095df8 |
comparison
equal
deleted
inserted
replaced
42021:a2ae27993e16 | 42022:44a51c1c8e17 |
---|---|
149 | 149 |
150 if not repository.NARROW_REQUIREMENT in op.repo.requirements: | 150 if not repository.NARROW_REQUIREMENT in op.repo.requirements: |
151 op.repo.requirements.add(repository.NARROW_REQUIREMENT) | 151 op.repo.requirements.add(repository.NARROW_REQUIREMENT) |
152 op.repo._writerequirements() | 152 op.repo._writerequirements() |
153 op.repo.setnarrowpats(includepats, excludepats) | 153 op.repo.setnarrowpats(includepats, excludepats) |
154 narrowspec.copytoworkingcopy(op.repo) | |
154 | 155 |
155 @bundle2.parthandler(_CHANGESPECPART) | 156 @bundle2.parthandler(_CHANGESPECPART) |
156 def _handlechangespec(op, inpart): | 157 def _handlechangespec(op, inpart): |
157 repo = op.repo | 158 repo = op.repo |
158 cl = repo.changelog | 159 cl = repo.changelog |