comparison 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
comparison
equal deleted inserted replaced
1080:253072f39205 1081:8b7d63489db3
28 if cwd: 28 if cwd:
29 return [util.normpath(os.path.join(cwd, x)) for x in args] 29 return [util.normpath(os.path.join(cwd, x)) for x in args]
30 return args 30 return args
31 31
32 def matchpats(repo, cwd, pats=[], opts={}, head=''): 32 def matchpats(repo, cwd, pats=[], opts={}, head=''):
33 return util.matcher(repo, cwd, pats or ['.'], opts.get('include'), 33 return util.matcher(repo.root, cwd, pats or ['.'], opts.get('include'),
34 opts.get('exclude'), head) 34 opts.get('exclude'), head)
35 35
36 def makewalk(repo, pats, opts, head=''): 36 def makewalk(repo, pats, opts, head=''):
37 cwd = repo.getcwd() 37 cwd = repo.getcwd()
38 files, matchfn, anypats = matchpats(repo, cwd, pats, opts, head) 38 files, matchfn, anypats = matchpats(repo, cwd, pats, opts, head)