Chris Jensen wrote:
> Hi,
> I keep my server config in subversion, I have some changes in /etc and
> /var/apache that I'd like to commit because they are essentially the
> one change.
> However, when I run
> svn ci /var/apache and /etc
> it simply says
> Aborted.
>
> I'm guessing this is because / and /var are not working copies, so svn
> assumes I am trying to check in two unrelated working copies (possibly
> to different repositories).
Your assumption is correct; all checked-in files must be part of the
same working copy; that is, the lowest common denominator (in this case
/) must also be a working copy.
In order to achieve this, I would check out your entire repository (or
whatever the common directory is that includes both /var and /etc) to
some other directory. You could then either copy that whole directory to
/ or, if that makes you nervous, copy only the .svn directories.
For example, your repository has http://repos/server/var and
http://repos/server/etc. Do a "svn co http://repos/server" to /foo, then
cd to /foo/server and "find . -name '.svn' |xargs -i cp -r {} /{}". As
long as you're OK with having a .svn directory in your filesystem root,
this will get you going. Otherwise there's really no way to accomplish
this and have your commits be atomic.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 2 20:30:38 2004