Show More
@@ -20,7 +20,7 b' def cleannames(items):' | |||
|
20 | 20 | return [(util.pconvert(name).strip('/'), path) for name, path in items] |
|
21 | 21 | |
|
22 | 22 | def findrepos(paths): |
|
23 |
repos = |
|
|
23 | repos = [] | |
|
24 | 24 | for prefix, root in cleannames(paths): |
|
25 | 25 | roothead, roottail = os.path.split(root) |
|
26 | 26 | # "foo = /bar/*" makes every subrepo of /bar/ to be |
@@ -30,7 +30,7 b' def findrepos(paths):' | |||
|
30 | 30 | try: |
|
31 | 31 | recurse = {'*': False, '**': True}[roottail] |
|
32 | 32 | except KeyError: |
|
33 |
repos |
|
|
33 | repos.append((prefix, root)) | |
|
34 | 34 | continue |
|
35 | 35 | roothead = os.path.normpath(roothead) |
|
36 | 36 | for path in util.walkrepos(roothead, followsym=True, recurse=recurse): |
@@ -38,8 +38,8 b' def findrepos(paths):' | |||
|
38 | 38 | name = util.pconvert(path[len(roothead):]).strip('/') |
|
39 | 39 | if prefix: |
|
40 | 40 | name = prefix + '/' + name |
|
41 |
repos |
|
|
42 |
return repos |
|
|
41 | repos.append((name, path)) | |
|
42 | return repos | |
|
43 | 43 | |
|
44 | 44 | class hgwebdir(object): |
|
45 | 45 | refreshinterval = 20 |
General Comments 0
You need to be logged in to leave comments.
Login now