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

Re: [TSVN] can't set svn:externals property to reference a directorywith a space

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2005-08-18 18:07:56 CEST

Stefan Küng wrote:
> URLs in the svn:externals property *must* be properly URI encoded. So
> instead of a space, you have to write %20. Then it will work.

This also came up recently (5/8/2005) with the relocate command.

In both cases we could improve matters by doing a conditional escape of
the URL before using it (before relocate, or before setting svn:externals)

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. In practice, if you put '%' in your Windows file/folder names
then you will be used to getting into this sort of trouble anyway ;-)

Simon

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Aug 18 18:10:26 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.