mercurial/scmutil.py
changeset 35913 558e01a23f40
parent 35888 c8e2d6ed1f9e
child 36137 f52a9336ac5f
equal deleted inserted replaced
35912:78b985c75731 35913:558e01a23f40
  1194 
  1194 
  1195         for k, v in data.items():
  1195         for k, v in data.items():
  1196             if k == self.firstlinekey:
  1196             if k == self.firstlinekey:
  1197                 e = "key name '%s' is reserved" % self.firstlinekey
  1197                 e = "key name '%s' is reserved" % self.firstlinekey
  1198                 raise error.ProgrammingError(e)
  1198                 raise error.ProgrammingError(e)
  1199             if not k[0].isalpha():
  1199             if not k[0:1].isalpha():
  1200                 e = "keys must start with a letter in a key-value file"
  1200                 e = "keys must start with a letter in a key-value file"
  1201                 raise error.ProgrammingError(e)
  1201                 raise error.ProgrammingError(e)
  1202             if not k.isalnum():
  1202             if not k.isalnum():
  1203                 e = "invalid key name in a simple key-value file"
  1203                 e = "invalid key name in a simple key-value file"
  1204                 raise error.ProgrammingError(e)
  1204                 raise error.ProgrammingError(e)