mercurial/config.py
changeset 17425 e95ec38f86b0
parent 16944 5d3d77b3c512
child 17537 31f32a96e1e3
equal deleted inserted replaced
17424:e7cfe3587ea4 17425:e95ec38f86b0
    65         self._source.update(src._source)
    65         self._source.update(src._source)
    66     def get(self, section, item, default=None):
    66     def get(self, section, item, default=None):
    67         return self._data.get(section, {}).get(item, default)
    67         return self._data.get(section, {}).get(item, default)
    68 
    68 
    69     def backup(self, section, item):
    69     def backup(self, section, item):
    70         """return a tuple allowing restore to reinstall a previous valuesi
    70         """return a tuple allowing restore to reinstall previous values
    71 
    71 
    72         The main reason we need it is because it handle the "no data" case.
    72         The main reason we need it is because it handle the "no data" case.
    73         """
    73         """
    74         try:
    74         try:
    75             value = self._data[section][item]
    75             value = self._data[section][item]