mercurial/ui.py
changeset 11036 4efdccaca21d
parent 10982 0a548640e012
child 11225 d6dbd5e4ee72
equal deleted inserted replaced
11022:0429d0d49f92 11036:4efdccaca21d
   180                         s[offset] == ','):
   180                         s[offset] == ','):
   181                     offset += 1
   181                     offset += 1
   182                 return _parse_plain, parts, offset
   182                 return _parse_plain, parts, offset
   183 
   183 
   184             while offset < len(s) and s[offset] != '"':
   184             while offset < len(s) and s[offset] != '"':
   185                 if s[offset] == '\\' and offset + 1 < len(s) and s[offset + 1] == '"':
   185                 if (s[offset] == '\\' and offset + 1 < len(s)
       
   186                         and s[offset + 1] == '"'):
   186                     offset += 1
   187                     offset += 1
   187                     parts[-1] += '"'
   188                     parts[-1] += '"'
   188                 else:
   189                 else:
   189                     parts[-1] += s[offset]
   190                     parts[-1] += s[offset]
   190                 offset += 1
   191                 offset += 1