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

Re: Ignore filenames during checkout?

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Thu, 17 Dec 2009 02:07:39 -0600

On Dec 17, 2009, at 01:45, David Cheng-Ping Wang wrote:

> I'm doing a checkout of a 6 year old repository that was once used
> solely by users with Macs, but I'm on Windows. Unfortunately, they
> committed many files with colons in their names.
>
> I understand the colon is reserved character in Windows' path names,
> and thus the correct fix would be to do a repository side move of the
> offending files to a more cross-platform friendly name.
>
> At the moment, I don't have to work with these offending files, but
> they are located in the same folder as other files I do need to modify.
> I was wondering if there is someway through svn's command line that I
> can recursively checkout the repository, but force it to skip
> checking out those files which violate Windows naming conventions.

You can use a sparse working copy, the features of which are documented here:

http://svnbook.red-bean.com/en/1.5/svn.advanced.sparsedirs.html

You need Subversion 1.5 or greater.

For example:

svn co --depth empty $REPO_URL/project/trunk project
cd project
svn up file_you_want another_file_you_want
svn up dir_with_no_problem_files
svn up --set-depth empty dir_with_problem_files
cd dir_with_problem_files
svn up and_another_file_you_want
...

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2431063

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-12-17 09:09:12 CET

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

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