mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
inherit hgrc so "%" interpolation works.
This commit is contained in:
parent
5a8cbc43b3
commit
78c4823c69
@ -5,10 +5,10 @@
|
||||
# This software may be used and distributed according to the terms
|
||||
# of the GNU General Public License, incorporated herein by reference.
|
||||
|
||||
import os, ConfigParser
|
||||
import ConfigParser
|
||||
from i18n import gettext as _
|
||||
from demandload import *
|
||||
demandload(globals(), "re socket sys util")
|
||||
demandload(globals(), "os re socket sys util")
|
||||
|
||||
class ui(object):
|
||||
def __init__(self, verbose=False, debug=False, quiet=False,
|
||||
@ -26,6 +26,10 @@ class ui(object):
|
||||
|
||||
self.updateopts(verbose, debug, quiet, interactive)
|
||||
self.diffcache = None
|
||||
else:
|
||||
self.cdata._defaults = parentui.cdata._defaults
|
||||
for key, value in parentui.cdata._sections.iteritems():
|
||||
self.cdata._sections[key] = value.copy()
|
||||
|
||||
def __getattr__(self, key):
|
||||
return getattr(self.parentui, key)
|
||||
@ -197,4 +201,3 @@ class ui(object):
|
||||
os.unlink(name)
|
||||
|
||||
return t
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user