diff -r 538d6b198f4a -r 62ee928ac9b3 hg-ssh --- a/hg-ssh Tue Apr 22 09:46:29 2008 +0100 +++ b/hg-ssh Tue Apr 22 12:55:56 2008 +0100 @@ -34,7 +34,7 @@ from mercurial import dispatch import sys, os -import rules +import ruleset def fail(message): #logfile.write("Fail: %s\n" % message) @@ -44,7 +44,7 @@ def getpath(path): if path.endswith("/"): path = path[:-1] - if not rules.goodpath(path): + if not ruleset.goodpath(path): fail("Disallowing path: %s" % path) return path @@ -68,7 +68,7 @@ fail("hg-ssh must have no arguments (%s)" % sys.argv) -rules = rules.Ruleset.readfile(os.environ['HG_ACCESS_RULES_FILE']) +rules = ruleset.Ruleset.readfile(os.environ['HG_ACCESS_RULES_FILE']) remoteuser = getpath(os.environ['REMOTE_USER']) todispatch = get_cmd(rules, remoteuser, os.environ.get('SSH_ORIGINAL_COMMAND', '?'))