Page 1 of 1

SVN Question

Posted: Thu Apr 09, 2009 9:17 am
by infolock
Guys,
Is it possible to tell Subversion to only export files with a specific extension?

I would love to perform this type of command:

Code: Select all

svn export svn://svn.myserver.com/svn-repository/*.php /my/path/ --force

Yet, when I try to do the above, I get the following message:

Code: Select all

svn: URL 'svn://svn.myserver.com/svn-repository/*.php' doesn't exist
I know someone out there has tried this, so would you be kind enough to help a brotha out? :)

Re: SVN Question

Posted: Thu Apr 09, 2009 9:44 am
by jaoudestudios
Hmmm good question.

Why not export everything and use linux command line to delete all the not php files? Messy I know

Re: SVN Question

Posted: Thu Apr 09, 2009 1:02 pm
by Benjamin
I don't think it does.

http://svnbook.red-bean.com/en/1.0/re10.html

You could however easily write a shell or php script to do it. Just be sure it skips the .svn folders.