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

Re: Export, but exclude certain files

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2005-12-20 18:29:56 CET

On Dec 20, 2005, at 18:06, Richard Lainchbury wrote:

> I've put our websites under version control with subversion.
>
> One of the things I'm interested in doing is exporting the site files
> to a staging server instead of manually uploading the files.
>
> The problem is, that we decided that putting all files under source
> control was the best thing to do so anyone can pick a project easily.
>
> Is it possible to excude certain files/directories when doing an
> export?

Well, no... When you tell Subversion to export a part of a
repository, it'll export the whole thing.

We have our projects structured this way in our repository:

/svn/
        project1/
                trunk/
                        dev/
                        web/
                                htdocs/
                                lib/
                                scripts/
                                ...
                branches/
                        ...
                tags/
                        ...
        project2/
                ...

The trunk contains dev and web. Dev contains files we need during
development, like Photoshop files or Flash files or Word documents,
but things that aren't part of the web site. The web site is in web.
Htdocs is the web server document root, lib are libraries the code in
htdocs includes, and scripts are scripts executed from the command
line—perhaps in a cronjob. Often there are other directories as well.

When we want to put this on the production web server, obviously the
stuff in dev is unnecessary, so we just get an export of the web
directory.

How have you structured your repository such that you need to pick
and choose which files make up the web site?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 20 19:09:32 2005

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.