mercurial/hgweb/hgwebdir_mod.py
branchstable
changeset 11677 8f8a7976f4bc
parent 11649 48163c39e1f1
child 12038 9617803b1acb
equal deleted inserted replaced
11676:e4357c214bf1 11677:8f8a7976f4bc
    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
    35         roothead = os.path.normpath(roothead)
    35         roothead = os.path.normpath(os.path.abspath(roothead))
    36         for path in util.walkrepos(roothead, followsym=True, recurse=recurse):
    36         for path in util.walkrepos(roothead, followsym=True, recurse=recurse):
    37             path = os.path.normpath(path)
    37             path = os.path.normpath(path)
    38             name = util.pconvert(path[len(roothead):]).strip('/')
    38             name = util.pconvert(path[len(roothead):]).strip('/')
    39             if prefix:
    39             if prefix:
    40                 name = prefix + '/' + name
    40                 name = prefix + '/' + name