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

Re: Create folders on initial checkout

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-14 11:49:49 CET

On Mar 13, 2006, at 22:21, Judah Frangipane wrote:

> Is there a way to make a repository create initial empty folders on
> the first check out?
> We want to checkout a repository to a website directory and have it
> create “template” directories like, “images, uploadfiles” etc.But
> we don’t want anything in those directories to be committed to the
> repository.

So create the directories and check them into the repository. Just
don't check in their contents. You can set the svn:ignore property of
those directories to "*" to make Subversion ignore (and subsequently
not check in) anything in those directories.

FWIW, in our web projects, we've stayed away from putting system-
generated or uploaded files anywhere within the working copy. We
subscribe to the idea that the working copy is transient and
expendable, and that it should be perfectly fine to obliterate a
working copy and get a fresh one from the repository. If we were to
store uploaded files inside the production server's working copy,
handling the working copy that way would be fatal. And we want to be
able to treat the working copy that way, so we store essential data
like uploaded files somewhere separate.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 14 11:50:54 2006

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.