--- a/src/hg-ssh Fri Mar 06 12:13:58 2009 +0000
+++ b/src/hg-ssh Fri Mar 06 12:27:16 2009 +0000
@@ -34,7 +34,7 @@
from mercurial import dispatch
import sys, os
-from mercurialserver import ruleset
+from mercurialserver import ruleset, paths
def fail(message):
#logfile.write("Fail: %s\n" % message)
@@ -73,6 +73,10 @@
remote_user = sys.argv[1]
os.environ['REMOTE_USER'] = remote_user
+os.environ['HG_ACCESS_RULES_PATH'] = (
+ paths.getEtcPath() + "/access.conf" + ":" +
+ os.getcwd() + "/hgadmin/access.conf")
+
rules = ruleset.rules_from_env()
rules.set(user = getpath(remote_user))
rules.set(branch = None, file = None)