hg-ssh
changeset 25 9d78dca32325
parent 23 9fa62cfd2821
equal deleted inserted replaced
24:9f8e11ede780 25:9d78dca32325
    67 if len(sys.argv) != 1:
    67 if len(sys.argv) != 1:
    68     fail("hg-ssh must have no arguments (%s)" 
    68     fail("hg-ssh must have no arguments (%s)" 
    69         % sys.argv)
    69         % sys.argv)
    70 
    70 
    71 rules = ruleset.Ruleset.readfile(os.environ['HG_ACCESS_RULES_FILE'])
    71 rules = ruleset.Ruleset.readfile(os.environ['HG_ACCESS_RULES_FILE'])
    72 rules.set(remoteuser = getpath(os.environ['REMOTE_USER']))
    72 rules.set(user = getpath(os.environ['REMOTE_USER']))
    73 rules.set(branch = None, file = None)
    73 rules.set(branch = None, file = None)
    74 todispatch = get_cmd(rules, 
    74 todispatch = get_cmd(rules, 
    75     os.environ.get('SSH_ORIGINAL_COMMAND', '?'))
    75     os.environ.get('SSH_ORIGINAL_COMMAND', '?'))
    76 dispatch.dispatch(todispatch)
    76 dispatch.dispatch(todispatch)
    77 
    77