hgext/graphlog.py
changeset 16171 336e61875335
parent 16161 5a627b49b4d9
child 16173 9178d284b880
equal deleted inserted replaced
16170:ef2373ea3d24 16171:336e61875335
   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):