src/hg-ssh
changeset 165 3606d60b07e5
parent 117 b6b8a5daf0f4
child 211 0cd59649772c
equal deleted inserted replaced
164:32131253c2f1 165:3606d60b07e5
    82         % sys.argv)
    82         % sys.argv)
    83 
    83 
    84 # Use a different hgrc for remote pulls - this way you can set
    84 # Use a different hgrc for remote pulls - this way you can set
    85 # up access.py for everything at once without affecting local operations
    85 # up access.py for everything at once without affecting local operations
    86 
    86 
    87 os.environ['HGRCPATH'] = paths.getEtcPath() + "/remote-hgrc"
    87 os.environ['HGRCPATH'] = paths.getHgrcPaths()
    88 
    88 
    89 os.chdir('repos')
    89 os.chdir(paths.getReposPath())
    90 
    90 
    91 for f in [
    91 for f in paths.getAccessPaths():
    92     paths.getEtcPath() + "/access.conf", 
       
    93     os.getcwd() + "/hgadmin/access.conf"]:
       
    94     if os.path.isfile(f):
    92     if os.path.isfile(f):
    95         ruleset.rules.readfile(f)
    93         ruleset.rules.readfile(f)
    96 
    94 
    97 cmd = os.environ.get('SSH_ORIGINAL_COMMAND', None)
    95 cmd = os.environ.get('SSH_ORIGINAL_COMMAND', None)
    98 if cmd is None:
    96 if cmd is None: