comparison mercurial/hook.py @ 14234:600e64004eb5

rename explain_exit to explainexit
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 06 May 2011 15:31:09 +0200
parents 1775382ff833
children ac70f8d5987c
comparison
equal deleted inserted replaced
14233:659f34b833b9 14234:600e64004eb5
107 if 'HG_URL' in env and env['HG_URL'].startswith('remote:http'): 107 if 'HG_URL' in env and env['HG_URL'].startswith('remote:http'):
108 r = util.system(cmd, environ=env, cwd=cwd, out=ui) 108 r = util.system(cmd, environ=env, cwd=cwd, out=ui)
109 else: 109 else:
110 r = util.system(cmd, environ=env, cwd=cwd) 110 r = util.system(cmd, environ=env, cwd=cwd)
111 if r: 111 if r:
112 desc, r = util.explain_exit(r) 112 desc, r = util.explainexit(r)
113 if throw: 113 if throw:
114 raise util.Abort(_('%s hook %s') % (name, desc)) 114 raise util.Abort(_('%s hook %s') % (name, desc))
115 ui.warn(_('warning: %s hook %s\n') % (name, desc)) 115 ui.warn(_('warning: %s hook %s\n') % (name, desc))
116 return r 116 return r
117 117