equal
deleted
inserted
replaced
18 error, |
18 error, |
19 exchange, |
19 exchange, |
20 localrepo, |
20 localrepo, |
21 narrowspec, |
21 narrowspec, |
22 repair, |
22 repair, |
|
23 scmutil, |
23 util, |
24 util, |
24 wireprototypes, |
25 wireprototypes, |
25 ) |
26 ) |
26 from mercurial.interfaces import repository |
27 from mercurial.interfaces import repository |
27 from mercurial.utils import stringutil |
28 from mercurial.utils import stringutil |
177 narrowspec.validatepatterns(includepats) |
178 narrowspec.validatepatterns(includepats) |
178 narrowspec.validatepatterns(excludepats) |
179 narrowspec.validatepatterns(excludepats) |
179 |
180 |
180 if not repository.NARROW_REQUIREMENT in op.repo.requirements: |
181 if not repository.NARROW_REQUIREMENT in op.repo.requirements: |
181 op.repo.requirements.add(repository.NARROW_REQUIREMENT) |
182 op.repo.requirements.add(repository.NARROW_REQUIREMENT) |
182 op.repo._writerequirements() |
183 scmutil.writereporequirements(op.repo) |
183 op.repo.setnarrowpats(includepats, excludepats) |
184 op.repo.setnarrowpats(includepats, excludepats) |
184 narrowspec.copytoworkingcopy(op.repo) |
185 narrowspec.copytoworkingcopy(op.repo) |
185 |
186 |
186 |
187 |
187 @bundle2.parthandler(_RESSPECS) |
188 @bundle2.parthandler(_RESSPECS) |
193 narrowspec.validatepatterns(includepats) |
194 narrowspec.validatepatterns(includepats) |
194 narrowspec.validatepatterns(excludepats) |
195 narrowspec.validatepatterns(excludepats) |
195 |
196 |
196 if repository.NARROW_REQUIREMENT not in op.repo.requirements: |
197 if repository.NARROW_REQUIREMENT not in op.repo.requirements: |
197 op.repo.requirements.add(repository.NARROW_REQUIREMENT) |
198 op.repo.requirements.add(repository.NARROW_REQUIREMENT) |
198 op.repo._writerequirements() |
199 scmutil.writereporequirements(op.repo) |
199 op.repo.setnarrowpats(includepats, excludepats) |
200 op.repo.setnarrowpats(includepats, excludepats) |
200 narrowspec.copytoworkingcopy(op.repo) |
201 narrowspec.copytoworkingcopy(op.repo) |
201 |
202 |
202 |
203 |
203 @bundle2.parthandler(_CHANGESPECPART) |
204 @bundle2.parthandler(_CHANGESPECPART) |