Mercurial > hg
comparison mercurial/hook.py @ 11493:cc4e2a7ca23f
Merge with stable
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Fri, 02 Jul 2010 11:30:57 +0200 |
parents | c37f35d7f2f5 |
children | 789e0fa2fcea |
comparison
equal
deleted
inserted
replaced
11428:8b452fe4bf50 | 11493:cc4e2a7ca23f |
---|---|
96 | 96 |
97 if repo: | 97 if repo: |
98 cwd = repo.root | 98 cwd = repo.root |
99 else: | 99 else: |
100 cwd = os.getcwd() | 100 cwd = os.getcwd() |
101 r = util.system(cmd, environ=env, cwd=cwd) | 101 if 'HG_URL' in env and env['HG_URL'].startswith('remote:http'): |
102 r = util.system(cmd, environ=env, cwd=cwd, out=ui) | |
103 else: | |
104 r = util.system(cmd, environ=env, cwd=cwd) | |
102 if r: | 105 if r: |
103 desc, r = util.explain_exit(r) | 106 desc, r = util.explain_exit(r) |
104 if throw: | 107 if throw: |
105 raise util.Abort(_('%s hook %s') % (name, desc)) | 108 raise util.Abort(_('%s hook %s') % (name, desc)) |
106 ui.warn(_('warning: %s hook %s\n') % (name, desc)) | 109 ui.warn(_('warning: %s hook %s\n') % (name, desc)) |