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

Re: [TSVN] Tag/Branch name checking suggestion.

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-01-19 19:55:35 CET

Peter McNab wrote:
> Using TSVN I created a Branch with a meaningful name that happened to
> included a colon
> It was entered into the repository without any noted problems.
>
> However, when I tried to update so as to create the folder locally and
> receive the branch contents I received an error message,
> (exact wording forgotten) to the effect that the proposed folder name
> was illegal.
>
> So I thought it might be worth having a "Windows file system naming
> convention" sanity check built into those dialogs the allow user input
> to hand type stuff before it gets submitted to the repository.
> It might not be necessary to prevent the entry being submitted, a
> warning and backout might be sufficient.

You're suggestion is of course a valid one. But there's a problem:
How can TSVN determine if a path is valid for a repository but not valid
for the windows filesystem? There are so many special cases here that I
don't know where to start.
For example, the following paths are valid on Linux (and therefore in
the Subversion repository) but invalid on windows:
file:name
CON
AUX

but
f:name
would be valid on windows too.

Does anyone know a good API function to test a whole path for validity?
I only know of PathGetCharType(), but that would allow ":" chars too as
valid path chars (e.g. for C:\), and obviously that char isn't allowed
inside a filename...

Stefan

-- 
        ___
   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 Wed Jan 19 19:56:16 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.