mercurial/config.py
changeset 31383 d30fb3de4b40
parent 31315 c920efa9d34b
child 31488 a7c687c35119
equal deleted inserted replaced
31382:7548522742b5 31383:d30fb3de4b40
    16     pycompat,
    16     pycompat,
    17     util,
    17     util,
    18 )
    18 )
    19 
    19 
    20 class config(object):
    20 class config(object):
    21     def __init__(self, data=None, includepaths=[]):
    21     def __init__(self, data=None, includepaths=None):
    22         self._data = {}
    22         self._data = {}
    23         self._source = {}
    23         self._source = {}
    24         self._unset = []
    24         self._unset = []
    25         self._includepaths = includepaths
    25         self._includepaths = includepaths or []
    26         if data:
    26         if data:
    27             for k in data._data:
    27             for k in data._data:
    28                 self._data[k] = data[k].copy()
    28                 self._data[k] = data[k].copy()
    29             self._source = data._source.copy()
    29             self._source = data._source.copy()
    30     def copy(self):
    30     def copy(self):