equal
deleted
inserted
replaced
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): |