comparison mercurial/commands.py @ 887:882756761433

Merge Windows path fixes.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 12 Aug 2005 15:10:09 -0800
parents 6594ba2a0f51 509de8ab6f31
children 391de0bcc722
comparison
equal deleted inserted replaced
885:6594ba2a0f51 887:882756761433
30 return files 30 return files
31 31
32 def relpath(repo, args): 32 def relpath(repo, args):
33 cwd = repo.getcwd() 33 cwd = repo.getcwd()
34 if cwd: 34 if cwd:
35 return [util.pconvert(os.path.normpath(os.path.join(cwd, x))) 35 return [util.normpath(os.path.join(cwd, x)) for x in args]
36 for x in args]
37 return args 36 return args
38 37
39 def matchpats(repo, cwd, pats = [], opts = {}, head = ''): 38 def matchpats(repo, cwd, pats = [], opts = {}, head = ''):
40 return util.matcher(repo, cwd, pats or ['.'], opts.get('include'), 39 return util.matcher(repo, cwd, pats or ['.'], opts.get('include'),
41 opts.get('exclude'), head) 40 opts.get('exclude'), head)