diff -r ef2373ea3d24 -r 336e61875335 hgext/graphlog.py --- a/hgext/graphlog.py Sat Feb 25 21:51:13 2012 +0100 +++ b/hgext/graphlog.py Sat Feb 25 22:11:34 2012 +0100 @@ -268,7 +268,11 @@ if 'branch' in opts and 'only_branch' in opts: opts['branch'] = opts['branch'] + opts.pop('only_branch') - match = scmutil.match(repo[None], pats, opts) + # pats/include/exclude are passed to match.match() directly in + # _matchfile() revset but walkchangerevs() builds its matcher with + # scmutil.match(). The difference is input pats are globbed on + # platforms without shell expansion (windows). + match, pats = scmutil.matchandpats(repo[None], pats, opts) slowpath = match.anypats() or (match.files() and opts.get('removed')) if not slowpath: for f in match.files():