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