Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 13984:af60153b5e3b
move rcpath from util to scmutil
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Thu, 21 Apr 2011 20:14:29 +0200 |
parents | 9f97de157aad |
children | 924c82157d46 |
comparison
equal
deleted
inserted
replaced
13983:144d64cf456e | 13984:af60153b5e3b |
---|---|
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 |