equal
deleted
inserted
replaced
5 # This software may be used and distributed according to the terms of the |
5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. |
6 # GNU General Public License version 2 or any later version. |
7 |
7 |
8 from i18n import _ |
8 from i18n import _ |
9 import errno, getpass, os, socket, sys, tempfile, traceback |
9 import errno, getpass, os, socket, sys, tempfile, traceback |
10 import config, util, error, url |
10 import config, scmutil, util, error, url |
11 |
11 |
12 class ui(object): |
12 class ui(object): |
13 def __init__(self, src=None): |
13 def __init__(self, src=None): |
14 self._buffers = [] |
14 self._buffers = [] |
15 self.quiet = self.verbose = self.debugflag = self.tracebackflag = False |
15 self.quiet = self.verbose = self.debugflag = self.tracebackflag = False |
30 self.fixconfig() |
30 self.fixconfig() |
31 else: |
31 else: |
32 # shared read-only environment |
32 # shared read-only environment |
33 self.environ = os.environ |
33 self.environ = os.environ |
34 # we always trust global config files |
34 # we always trust global config files |
35 for f in util.rcpath(): |
35 for f in scmutil.rcpath(): |
36 self.readconfig(f, trust=True) |
36 self.readconfig(f, trust=True) |
37 |
37 |
38 def copy(self): |
38 def copy(self): |
39 return self.__class__(self) |
39 return self.__class__(self) |
40 |
40 |