Show More
@@ -22,16 +22,15 b' def filterfiles(filters, files):' | |||
|
22 | 22 | return l |
|
23 | 23 | |
|
24 | 24 | def relfilter(repo, files): |
|
25 | if os.getcwd() != repo.root: | |
|
26 | p = os.getcwd()[len(repo.root) + 1: ] | |
|
27 |
return filterfiles([util.pconvert( |
|
|
25 | cwd = repo.getcwd() | |
|
26 | if cwd: | |
|
27 | return filterfiles([util.pconvert(cwd)], files) | |
|
28 | 28 | return files |
|
29 | 29 | |
|
30 | 30 | def relpath(repo, args): |
|
31 | if os.getcwd() != repo.root: | |
|
32 | p = os.getcwd()[len(repo.root) + 1: ] | |
|
33 |
return [ util.pconvert(os.path.normpath(os.path.join( |
|
|
34 | for x in args ] | |
|
31 | cwd = repo.getcwd() | |
|
32 | if cwd: | |
|
33 | return [ util.pconvert(os.path.normpath(os.path.join(cwd, x))) for x in args ] | |
|
35 | 34 | return args |
|
36 | 35 | |
|
37 | 36 | revrangesep = ':' |
General Comments 0
You need to be logged in to leave comments.
Login now