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

Re: Repository for some files only?

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2007-03-28 10:37:17 CEST

On 3/28/07, Holger Wirtz <wirtz@dfn.de> wrote:
> Hi,
> I have a simple problem: I use svn to manage the configuration files of
> my servers. Sometimes the services have their own directories and
> creating a repository (and imprting) is no problem, because "svn import"
> recursive imports all files.
> But what if I want to check in some (or only one) file inside /etc? Is
> there a better way than the one (and complex) I found?

Yes: in-place import http://subversion.tigris.org/faq.html#in-place-import

> - "svncreate ..."
> - "svn import ..." the whole directory (e.g. /etc)
> - "mv /etc /etc.orig" - I won't delete something if there may be
> problems appear...
> - "svn checkout ..." - now I have the whole directory inside the
> repository - that's not what I want
> - "svn delete <file1> <file2> ..." - I delete every file I don't need
> inside the repository
> - "cp ../etc.orig/<file1> ." ... I copy every files I just deleted in
> the repository (and on my harddisc) back
> Now I have only some of the files I needed in the repository. But this
> is quite not an easy way. Is there a better solution around?



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 28 10:37:40 2007

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.