diff mercurial/commands.py @ 1081:8b7d63489db3

Change canonpath to not know about repo objects Code in util should not have any knowledge about repo objects
author mpm@selenic.com
date Fri, 26 Aug 2005 23:29:10 -0700
parents 8f0ac653f85e
children 6f94688b81b6
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -30,7 +30,7 @@ def relpath(repo, args):
     return args
 
 def matchpats(repo, cwd, pats=[], opts={}, head=''):
-    return util.matcher(repo, cwd, pats or ['.'], opts.get('include'),
+    return util.matcher(repo.root, cwd, pats or ['.'], opts.get('include'),
                         opts.get('exclude'), head)
 
 def makewalk(repo, pats, opts, head=''):