You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Holger Wirtz <wi...@dfn.de> on 2007/03/28 08:32:39 UTC

Repository for some files only?

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

Re: Repository for some files only?

Posted by Holger Wirtz <wi...@dfn.de>.
Erik,

On Wed, Mar 28, 2007 at 10:37:17AM +0200, Erik Huelsmann wrote:
> On 3/28/07, Holger Wirtz <wi...@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
[...]

Great! Thanks a lot!!!

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

Re: Repository for some files only?

Posted by Erik Huelsmann <eh...@gmail.com>.
On 3/28/07, Holger Wirtz <wi...@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?

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org