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

Re: Trailing space in folder name causes problem

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 20 Jul 2011 00:10:07 -0400

On Tue, Jul 19, 2011 at 23:05, John <gupd4cdbcb_at_snkmail.com> wrote:
> Don't know if this is a Tortoise &/or SVN issue.
> Using the repo browser to 'copy to' a new folder, the folder name was entered in with a trailing space unintentionally.
> This then causes an error when doing a check-out/update of that folder or higher level folders.
> "Update
> Can't create directory 'C:\ ...  \.svn': The system cannot
> find the path specified."
> Lower level folders checkout ok.
> The workaround is easy, use repo browser to rename the folder, removing the trailing space.
> Not a biggie but a bug nontheless.

Does Windows allow you to create a directory with a trailing space in
the name in the first place (outside Subversion)? IIRC, it doesn't (I
don't have a Windows system at hand at the moment). If not, the issue
is really that Subversion, being cross-platform, allows you to
create/store/manage items which violate the naming rules on some OSes
because those rules don't exist on others.

There is no solution to this aside from creating a pre-commit hook
script which disallows committing filenames which violate the rules of
any OS (to allow full interoperability on all platforms).

See http://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx for
MS's rules on filenames & paths, including trailing spaces.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2798369

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-07-20 06:10:57 CEST

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

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