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

Re: Creating a new working copy in an existing directory (/etc)

From: Nicolas Bonnefon <nicolasbonnefon_at_fr.st>
Date: 2003-03-30 00:07:05 CET

On Sat, 2003-03-29 at 16:02, Jani Averbach wrote:
> > I wonder if it's possible to update a directory (not under svn control)
> > with the repository.

> I don't know how well merging will work, but this how I put my etc to
> under subversion.
>
> 12: find -name .svn -exec cp -a {} ../datadir/{} \;
>

That's OK, it works quite well! It's a bit tricky to move the .svn
directory from one directory to another but... yes, it works!

Maybe an option should be added to forbid 'svn co' to actually overwrite
controlled files? Or better: 'svn switch' may be allowed to work even
with a directory which is not a working copy (adding the right infos)?
 
> This concept worked extremely well when I made my initial import for etc.
> So, I think that you would be intrested about #12. My wild guess is that
> you could checkout your current copy of etc to etc-svn, and after that
> copy .svn directories to etc and to do merge by this way. But do this at
> your own risk, this is only a guess. Please tell afterward what
> happened. =)
>
Don't worry, this box has a fresh OS installed for testing, I'm not the
kind of guy playing with /etc on a production server ;-)

> In my setup, there is also a file where is pretty printed my etc's
> symlinks layout, and that file is also under version control.

Fine, do you have a script to generate this file?

Regarding /etc, I had another idea to avoid messing up the /etc
directory with subversion infos: we may put the svn controlled files in
a subdirectory (a working copy) and only put symlinks to them in /etc.

-- 
Nicolas Bonnefon <nicolasbonnefon@fr.st>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 29 23:59:13 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.