equal
deleted
inserted
replaced
108 and patterns that are loaded from sources that use the internal, |
108 and patterns that are loaded from sources that use the internal, |
109 prefixed pattern representation (but can't necessarily be fully trusted). |
109 prefixed pattern representation (but can't necessarily be fully trusted). |
110 """ |
110 """ |
111 if not isinstance(pats, set): |
111 if not isinstance(pats, set): |
112 raise error.ProgrammingError( |
112 raise error.ProgrammingError( |
113 b'narrow patterns should be a set; ' b'got %r' % pats |
113 b'narrow patterns should be a set; got %r' % pats |
114 ) |
114 ) |
115 |
115 |
116 for pat in pats: |
116 for pat in pats: |
117 if not pat.startswith(VALID_PREFIXES): |
117 if not pat.startswith(VALID_PREFIXES): |
118 # Use a Mercurial exception because this can happen due to user |
118 # Use a Mercurial exception because this can happen due to user |