[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] Bug report: "relocate" does not work in some cases

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2005-08-05 13:19:46 CEST

Rainer Müller wrote:
> Simon Large wrote:
>
>>>When relocating, you always *must* escape the URLs properly (i.e.
>>>change a space to %20). That't because the relocate command replaces
>>>the URL's inside the .svn\entries file.
>>
>>
>>Could TSVN do that automatically, or is it dangerous?
>
>
> I think the problem is to know wether somebody entered an escaped or an
> unescaped URL. If you escape an escaped URL again it will break.

Two alternatives:

1. Escape the URL *unless* it already contains '%'.
2. Escape the URL if it contains an illegal char *except* '%'.

Both suffer the same problem that if a folder name really does contain a
'%' char then it may appear as an already-escaped URL. The second option
is more likely to catch this if there is any other illegal char, like space.

Simon

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
if (URL contains '%')
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Aug 5 13:19:14 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.