comparison mercurial/hook.py @ 23270:41c03b7592ed

util.system: use ui.system() in place of optional ui.fout parameter
author Yuya Nishihara <yuya@tcha.org>
date Sat, 08 Nov 2014 13:06:22 +0900
parents 0fd3862ef425
children 19ebd2f88fc7
comparison
equal deleted inserted replaced
23269:d9d8d2e0f701 23270:41c03b7592ed
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 r = util.system(cmd, environ=env, cwd=cwd, out=ui.fout) 134 r = ui.system(cmd, environ=env, cwd=cwd)
135 135
136 duration = time.time() - starttime 136 duration = time.time() - starttime
137 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',
138 name, cmd, duration) 138 name, cmd, duration)
139 if r: 139 if r: