Show More
@@ -138,6 +138,9 b' def redirect(state):' | |||
|
138 | 138 | _redirect = state |
|
139 | 139 | |
|
140 | 140 | def hook(ui, repo, name, throw=False, **args): |
|
141 | if not ui.callhooks: | |
|
142 | return False | |
|
143 | ||
|
141 | 144 | r = False |
|
142 | 145 | |
|
143 | 146 | oldstdout = -1 |
@@ -19,6 +19,7 b' class ui(object):' | |||
|
19 | 19 | self._ucfg = config.config() # untrusted |
|
20 | 20 | self._trustusers = set() |
|
21 | 21 | self._trustgroups = set() |
|
22 | self.callhooks = True | |
|
22 | 23 | |
|
23 | 24 | if src: |
|
24 | 25 | self.fout = src.fout |
@@ -31,6 +32,7 b' class ui(object):' | |||
|
31 | 32 | self._trustusers = src._trustusers.copy() |
|
32 | 33 | self._trustgroups = src._trustgroups.copy() |
|
33 | 34 | self.environ = src.environ |
|
35 | self.callhooks = src.callhooks | |
|
34 | 36 | self.fixconfig() |
|
35 | 37 | else: |
|
36 | 38 | self.fout = sys.stdout |
General Comments 0
You need to be logged in to leave comments.
Login now