equal
deleted
inserted
replaced
129 |
129 |
130 if repo: |
130 if repo: |
131 cwd = repo.root |
131 cwd = repo.root |
132 else: |
132 else: |
133 cwd = os.getcwd() |
133 cwd = os.getcwd() |
134 if 'HG_URL' in env and env['HG_URL'].startswith('remote:http'): |
134 r = util.system(cmd, environ=env, cwd=cwd, out=ui.fout) |
135 r = util.system(cmd, environ=env, cwd=cwd, out=ui) |
|
136 else: |
|
137 r = util.system(cmd, environ=env, cwd=cwd, out=ui.fout) |
|
138 |
135 |
139 duration = time.time() - starttime |
136 duration = time.time() - starttime |
140 ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n', |
137 ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n', |
141 name, cmd, duration) |
138 name, cmd, duration) |
142 if r: |
139 if r: |