equal
deleted
inserted
replaced
266 # branch and only_branch are really aliases and must be handled at |
266 # branch and only_branch are really aliases and must be handled at |
267 # the same time |
267 # the same time |
268 if 'branch' in opts and 'only_branch' in opts: |
268 if 'branch' in opts and 'only_branch' in opts: |
269 opts['branch'] = opts['branch'] + opts.pop('only_branch') |
269 opts['branch'] = opts['branch'] + opts.pop('only_branch') |
270 |
270 |
271 match = scmutil.match(repo[None], pats, opts) |
271 # pats/include/exclude are passed to match.match() directly in |
|
272 # _matchfile() revset but walkchangerevs() builds its matcher with |
|
273 # scmutil.match(). The difference is input pats are globbed on |
|
274 # platforms without shell expansion (windows). |
|
275 match, pats = scmutil.matchandpats(repo[None], pats, opts) |
272 slowpath = match.anypats() or (match.files() and opts.get('removed')) |
276 slowpath = match.anypats() or (match.files() and opts.get('removed')) |
273 if not slowpath: |
277 if not slowpath: |
274 for f in match.files(): |
278 for f in match.files(): |
275 filelog = repo.file(f) |
279 filelog = repo.file(f) |
276 if not len(filelog): |
280 if not len(filelog): |