bookmarks extension

Frank A. Kingswood frank at kingswood-consulting.co.uk
Tue Mar 3 15:03:33 CST 2009


Mads Kiilerich wrote:
 > Can you explain why this particular format is so difficult to parse?
 >
 > Yes, you can't use line.split(), but you can use line[1]. I am sure 
Tcl has similar functionality.

The POSIX shell does not have substrings, but it can split on words.

 > Optional fields are often less simple and more error prone.

Agreed. But for this, the optional field should not disappear from view.

 > ps: If I had a need for parsing Mercurials output then I would 
request something like Marshalled Python output.

Yes. I don't like P4 much as a version control tool, but at least it has 
a machine-readable output.

Frank
-- 
------------------------------------------------------------------------
Frank A. Kingswood                      frank at kingswood-consulting.co.uk
Cambridge, United Kingdom                               +44-870-095 0000




More information about the Mercurial-devel mailing list