Show More
@@ -21,6 +21,10 b' class ui(object):' | |||
|
21 | 21 | self._trustgroups = set() |
|
22 | 22 | |
|
23 | 23 | if src: |
|
24 | self.fout = src.fout | |
|
25 | self.ferr = src.ferr | |
|
26 | self.fin = src.fin | |
|
27 | ||
|
24 | 28 | self._tcfg = src._tcfg.copy() |
|
25 | 29 | self._ucfg = src._ucfg.copy() |
|
26 | 30 | self._ocfg = src._ocfg.copy() |
@@ -29,6 +33,10 b' class ui(object):' | |||
|
29 | 33 | self.environ = src.environ |
|
30 | 34 | self.fixconfig() |
|
31 | 35 | else: |
|
36 | self.fout = sys.stdout | |
|
37 | self.ferr = sys.stderr | |
|
38 | self.fin = sys.stdin | |
|
39 | ||
|
32 | 40 | # shared read-only environment |
|
33 | 41 | self.environ = os.environ |
|
34 | 42 | # we always trust global config files |
General Comments 0
You need to be logged in to leave comments.
Login now