mercurial/scmutil.py
branchstable
changeset 43365 899e55e2d375
parent 43147 54e943b28101
child 43506 9f70512ae2cf
child 43947 b4c82b704180
equal deleted inserted replaced
43364:dd64e229c46b 43365:899e55e2d375
  1852             if self.firstlinekey in updatedict:
  1852             if self.firstlinekey in updatedict:
  1853                 e = _(b"%r can't be used as a key")
  1853                 e = _(b"%r can't be used as a key")
  1854                 raise error.CorruptedState(e % self.firstlinekey)
  1854                 raise error.CorruptedState(e % self.firstlinekey)
  1855             d.update(updatedict)
  1855             d.update(updatedict)
  1856         except ValueError as e:
  1856         except ValueError as e:
  1857             raise error.CorruptedState(str(e))
  1857             raise error.CorruptedState(stringutil.forcebytestr(e))
  1858         return d
  1858         return d
  1859 
  1859 
  1860     def write(self, data, firstline=None):
  1860     def write(self, data, firstline=None):
  1861         """Write key=>value mapping to a file
  1861         """Write key=>value mapping to a file
  1862         data is a dict. Keys must be alphanumerical and start with a letter.
  1862         data is a dict. Keys must be alphanumerical and start with a letter.