hgext/graphlog.py
changeset 16171 336e61875335
parent 16161 5a627b49b4d9
child 16173 9178d284b880
--- 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():