You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Phil <cw...@gmail.com> on 2012/01/05 18:49:15 UTC

How to control where to put .subversion directory

Not sure if this is even possible but subversion place the ".subversion"
directory based on your unix environment variable called $HOME.  Well, on
one server, we have specifically specify $HOME to a location that could be
deleted in the future.  If that's the case, then there goes the
".subversion" information.  So, can the ".subversion" directory be backed
up and manually move it somewhere else?  I'm assuming not since the
subversion program is relying on the $HOME variable.  If that directory
every got lost, what's the best approach on recovering it so that
subversion can still function as normal.  Thanks for your inputs.

-Phillip

Re: How to control where to put .subversion directory

Posted by Phil <cw...@gmail.com>.
Thank you Ed and Ryan.  You provided me some ideas around this topic.  I
appreciated it.

On Thu, Jan 5, 2012 at 3:06 PM, Ed <SV...@0x1b.com> wrote:

>  On Thu, Jan 5, 2012 at 10:49 AM, Phil <cw...@gmail.com> wrote:
> > Not sure if this is even possible but subversion place the ".subversion"
> > directory based on your unix environment variable called $HOME.  Well, on
> > one server, we have specifically specify $HOME to a location that could
> be
> > deleted in the future.  If that's the case, then there goes the
> > ".subversion" information.  So, can the ".subversion" directory be
> backed up
> > and manually move it somewhere else?  I'm assuming not since the
> subversion
> > program is relying on the $HOME variable.  If that directory every got
> lost,
> > what's the best approach on recovering it so that subversion can still
> > function as normal.  Thanks for your inputs.
> >
> > -Phillip
>
>
> Keep your .subversion in a safe place and make $HOME/.subversion a
> link to it (ln -s) - if $HOME goes away you only loose the link. This
> will save your settings, but more importantly your credentials to any
> repos you access (proxy settings too).
>
> add this link to the other ones you will need (like .ssh) when you
> rebuild your $HOME - on your workstation. There is also a system wide
> config file in /etc, but it would apply to all users of the system.
>

Re: How to control where to put .subversion directory

Posted by Ed <SV...@0x1b.com>.
On Thu, Jan 5, 2012 at 10:49 AM, Phil <cw...@gmail.com> wrote:
> Not sure if this is even possible but subversion place the ".subversion"
> directory based on your unix environment variable called $HOME.  Well, on
> one server, we have specifically specify $HOME to a location that could be
> deleted in the future.  If that's the case, then there goes the
> ".subversion" information.  So, can the ".subversion" directory be backed up
> and manually move it somewhere else?  I'm assuming not since the subversion
> program is relying on the $HOME variable.  If that directory every got lost,
> what's the best approach on recovering it so that subversion can still
> function as normal.  Thanks for your inputs.
>
> -Phillip


Keep your .subversion in a safe place and make $HOME/.subversion a
link to it (ln -s) - if $HOME goes away you only loose the link. This
will save your settings, but more importantly your credentials to any
repos you access (proxy settings too).

add this link to the other ones you will need (like .ssh) when you
rebuild your $HOME - on your workstation. There is also a system wide
config file in /etc, but it would apply to all users of the system.

Re: How to control where to put .subversion directory

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 5, 2012, at 11:49, Phil wrote:

> Not sure if this is even possible but subversion place the ".subversion" directory based on your unix environment variable called $HOME.  Well, on one server, we have specifically specify $HOME to a location that could be deleted in the future.  If that's the case, then there goes the ".subversion" information.  So, can the ".subversion" directory be backed up and manually move it somewhere else?  I'm assuming not since the subversion program is relying on the $HOME variable.  If that directory every got lost, what's the best approach on recovering it so that subversion can still function as normal.  Thanks for your inputs.

The .subversion folder only contains your settings. If it's missing, Subversion will create a new one from its defaults.

You can specify an alternate location for this directory by using the --config-dir argument. You'd have to specify it every time you run the svn command.