mercurial/cmdutil.py
changeset 4192 492d0d5b6976
parent 4190 e8ee8fdeddb1
child 4195 b5d1eaade333
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -127,16 +127,16 @@ def make_file(repo, pat, node=None,
                               pathname),
                 mode)
 
-def matchpats(repo, pats=[], opts={}, head='', globbed=False, default=None):
+def matchpats(repo, pats=[], opts={}, globbed=False, default=None):
     cwd = repo.getcwd()
     return util.cmdmatcher(repo.root, cwd, pats or [], opts.get('include'),
-                           opts.get('exclude'), head, globbed=globbed,
+                           opts.get('exclude'), globbed=globbed,
                            default=default)
 
-def walk(repo, pats=[], opts={}, node=None, head='', badmatch=None,
-         globbed=False, default=None):
-    files, matchfn, anypats = matchpats(repo, pats, opts, head,
-                                        globbed=globbed, default=default)
+def walk(repo, pats=[], opts={}, node=None, badmatch=None, globbed=False,
+         default=None):
+    files, matchfn, anypats = matchpats(repo, pats, opts, globbed=globbed,
+                                        default=default)
     exact = dict.fromkeys(files)
     for src, fn in repo.walk(node=node, files=files, match=matchfn,
                              badmatch=badmatch):