equal
deleted
inserted
replaced
21 |
21 |
22 def findrepos(paths): |
22 def findrepos(paths): |
23 repos = [] |
23 repos = [] |
24 for prefix, root in cleannames(paths): |
24 for prefix, root in cleannames(paths): |
25 roothead, roottail = os.path.split(root) |
25 roothead, roottail = os.path.split(root) |
26 # "foo = /bar/*" makes every subrepo of /bar/ to be |
26 # "foo = /bar/*" or "foo = /bar/**" lets every repo /bar/N in or below |
27 # mounted as foo/subrepo |
27 # /bar/ be served as as foo/N . |
28 # and "foo = /bar/**" also recurses into the subdirectories, |
28 # '*' will not search inside dirs with .hg (except .hg/patches), |
29 # remember to use it without working dir. |
29 # '**' will search inside dirs with .hg (and thus also find subrepos). |
30 try: |
30 try: |
31 recurse = {'*': False, '**': True}[roottail] |
31 recurse = {'*': False, '**': True}[roottail] |
32 except KeyError: |
32 except KeyError: |
33 repos.append((prefix, root)) |
33 repos.append((prefix, root)) |
34 continue |
34 continue |