mercurial/config.py
changeset 17530 0dff04ffa15d
parent 17527 6e11d5cf8e39
child 17537 31f32a96e1e3
equal deleted inserted replaced
17529:b61a62714346 17530:0dff04ffa15d
    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 value
    70         """return a tuple allowing restore to reinstall a previous value
    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 handles the "no data" case.
    73         """
    73         """
    74         try:
    74         try:
    75             value = self._data[section][item]
    75             value = self._data[section][item]
    76             source = self.source(section, item)
    76             source = self.source(section, item)
    77             return (section, item, value, source)
    77             return (section, item, value, source)