SVN Question

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

SVN Question

Post 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? :)
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: SVN Question

Post by jaoudestudios »

Hmmm good question.

Why not export everything and use linux command line to delete all the not php files? Messy I know
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: SVN Question

Post 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.
Post Reply