equal
deleted
inserted
replaced
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) |