Hi all,
I have come across what appear to be inconsistencies with the handling
of special characters (ie '?') in filenames for URL-based renames &
deletes.
Examples:
> svn list svn://localhost/rename_test
alpha.txt
> svn rename svn://localhost/rename_test/alpha.txt
svn://localhost/rename_test/alpha?.txt
svn: URL 'svn://localhost/rename_test/alpha?.txt' is not properly
URI-encoded
This is an expected error. So, use the percentage notation:
> svn rename svn://localhost/rename_test/alpha.txt
svn://localhost/rename_test/alpha?.txt
Committed revision X.
> svn list svn://localhost/rename_test
alpha?.txt
It appears the rename has worked. But, we cannot rename the file back:
>svn rename svn://localhost/rename_Test/alpha%3F.txt
svn://localhost/rename_Test/alpha.txt --message ""
svn: Can't open file 'D://svnrepos/rename_Test/alpha?.txt/format':
The filename,
directory name, or volume label syntax is incorrect.
I get the same errors if I attempt to move the file to a different
location.
> svn delete svn://localhost/rename_Test/alpha%3F.txt --message ""
Committed revision 6.
Now, I'm not sure where the problem lies. Should these names even be
allowed? If so, then the rename obviously needs to be fixed.
Cheers,
Daniel B.
Received on 2008-10-01 05:01:48 CEST