I have completed the code which moves the name of an entry in the
entries from from the entry name= attribute to the entry tag's
CDATA (which also changes entry from a self-closing tag to a normal
one). The best part about it is that the reading code handles current
and new-style entries files, while the writing code only writes the
new style. This means that to upgrade your entire working copy to the
new entries file format, you would need to do only this:
1. build a new client.
2. svn up -r any_revision_older_than_HEAD working_copy
3. svn up working_copy
This forces all your entries file to be rewritten, which of course
upgrades you to the new format.
The reason for the change is really simple. XML is a bit pickier
about what can be in its attribute data, such that we would need
special handling for characters (like tabs) that can't exist in those
fields. The CDATA allows a wider range of characters. So, using the
example of a file with a tab in its name, as an attribute that need to
be stored as name=filename, whereas using CDATA we can use the
regular name, tab and all. Both fields still require escaping of ''
and '', which my code is also handling.
I'm 'make check'ing now, though my hand tests leave me no reason to
doubt the integrity of this change. I'm basically seeking feedback
from the community on whether or not I should commit the change to our
tree.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:20:53 2006