Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 886:509de8ab6f31
Fix walk path handling on Windows
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 12 Aug 2005 15:06:52 -0800 |
parents | 087771ebe2e6 |
children | 882756761433 391de0bcc722 a9b843b114f9 |
comparison
equal
deleted
inserted
replaced
884:087771ebe2e6 | 886:509de8ab6f31 |
---|---|
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) |