##// END OF EJS Templates
narrow: validate patterns on incoming bundle2 part...
Gregory Szorc -
r39576:ce20caec default
parent child Browse files
Show More
@@ -195,6 +195,9 def getbundlechangegrouppart_narrow(bund
195 def _handlechangespec_2(op, inpart):
195 def _handlechangespec_2(op, inpart):
196 includepats = set(inpart.params.get(_SPECPART_INCLUDE, '').splitlines())
196 includepats = set(inpart.params.get(_SPECPART_INCLUDE, '').splitlines())
197 excludepats = set(inpart.params.get(_SPECPART_EXCLUDE, '').splitlines())
197 excludepats = set(inpart.params.get(_SPECPART_EXCLUDE, '').splitlines())
198 narrowspec.validatepatterns(includepats)
199 narrowspec.validatepatterns(excludepats)
200
198 if not repository.NARROW_REQUIREMENT in op.repo.requirements:
201 if not repository.NARROW_REQUIREMENT in op.repo.requirements:
199 op.repo.requirements.add(repository.NARROW_REQUIREMENT)
202 op.repo.requirements.add(repository.NARROW_REQUIREMENT)
200 op.repo._writerequirements()
203 op.repo._writerequirements()
General Comments 0
You need to be logged in to leave comments. Login now