src/hg-ssh
changeset 212 ab5e0e4f5a0c
parent 211 0cd59649772c
child 214 7374d0147875
equal deleted inserted replaced
211:0cd59649772c 212:ab5e0e4f5a0c
    79     ruleset.rules.set(user = sys.argv[1])
    79     ruleset.rules.set(user = sys.argv[1])
    80 else:
    80 else:
    81     fail("hg-ssh wrongly called, is authorized_keys corrupt? (%s)" 
    81     fail("hg-ssh wrongly called, is authorized_keys corrupt? (%s)" 
    82         % sys.argv)
    82         % sys.argv)
    83 
    83 
    84 # Use a different hgrc for remote pulls - this way you can set
    84 for k,v in config.getEnv().iteritems():
    85 # up access.py for everything at once without affecting local operations
    85     os.environ[k] = v
    86 
       
    87 os.environ['HGRCPATH'] = config.getHgrcPaths()
       
    88 
    86 
    89 os.chdir(config.getReposPath())
    87 os.chdir(config.getReposPath())
    90 
    88 
    91 for f in config.getAccessPaths():
    89 for f in config.getAccessPaths():
    92     if os.path.isfile(f):
    90     if os.path.isfile(f):