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

Repository for some files only?

From: Holger Wirtz <wirtz_at_dfn.de>
Date: 2007-03-28 10:32:39 CEST

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?

- "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?

Thanks, Holger

-- 
#####  #### ##  ##   Holger Wirtz         Phone : (+49 30) 884299-40
##  ## ##   ### ##   DFN-Verein           Fax   : (+49 30) 884299-70
##  ## #### ######   Stresemannstr. 78    E-Mail: wirtz@dfn.de
##  ## ##   ## ###   10963 Berlin
#####  ##   ##  ##   GERMANY              WWW   : http://www.dfn.de
GPG-Fingerprint: ABFA 1F51 DD8D 503C 85DC  0C51 E961 79E2 6685 9BCF
---------------------------------------------------------------------
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:33:01 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.