src/hg-ssh
branchdebian
changeset 118 107906bfe2c6
parent 117 b6b8a5daf0f4
child 165 3606d60b07e5
equal deleted inserted replaced
116:d99f3169828a 118:107906bfe2c6
    62     repo = repo.rstrip("/")
    62     repo = repo.rstrip("/")
    63     if len(repo) == 0:
    63     if len(repo) == 0:
    64         fail("path to repository seems to be empty")
    64         fail("path to repository seems to be empty")
    65     if repo.startswith("/"):
    65     if repo.startswith("/"):
    66         fail("absolute paths are not supported")
    66         fail("absolute paths are not supported")
    67     checkDots(path)
    67     checkDots(repo)
    68     ruleset.rules.set(repo=repo)
    68     ruleset.rules.set(repo=repo)
    69     if not ruleset.rules.allow(op, branch=None, file=None):
    69     if not ruleset.rules.allow(op, branch=None, file=None):
    70         fail("access denied")
    70         fail("access denied")
    71     checkParents(repo)
    71     checkParents(repo)
    72     return repo
    72     return repo