You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alan Brogan <ab...@altobridge.com> on 2010/03/04 13:13:49 UTC
Could not un- and re- link ~/.subversion/config
Hello the list,
I just lost a few hours trying to do this:
$ cd ~/.subversion
$ rm -f config
$ ln -s /path/to/another/config .
The link command kept failing, because "File exists"
WTF ?
Turns out I cannot remove ~/.subversion/* in one command, as some other process is protecting them from deletion (but not from editing).
Eventually I did figure out the workaround, which is simply to join them into one command
$ rm -f config && ln -s /path/to/another/config .
But it was a £*({ing annoying few hours between problem arising and finding solution (and even more annoying that the solution was so simple)
I can find no documentation of this feature at
http://svnbook.red-bean.com/en/1.5/
http://subversion.apache.org/faq.html
http://mail-archives.apache.org/mod_mbox/subversion-users/
so, I would like to ask:
a) where is it documented ?
b) can it be extended to other user-configurable directories ?
Thank you for reading this far, and any writing you might be able to do.
--
Alan
Re: Could not un- and re- link ~/.subversion/config
Posted by Alan Brogan <ab...@altobridge.com>.
It is not the file it is the directory
It happens on multiple different OSs (at least Linux and OSX)
On all of them it happens only in ~/.subversion
--
Alan
----- Original Message -----
From: "Alexey Neyman" <st...@att.net>
To: users@subversion.apache.org
Cc: "Alan Brogan" <ab...@altobridge.com>
Sent: Thursday, 4 March, 2010 17:57:05 GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: Could not un- and re- link ~/.subversion/config
"File exists" error means that the file is re-created after you delete it
but before 'ln'. The fact that you were able to achieve re-linking by
combining two commands into one (rm ... && ln ...) suggests that there is
something invoking 'svn' periodically (cron job?).
As far as I know, Subversion does not have any special logic for config
file protection. However, it does re-create this file with default
settings if it does not find one when 'svn' command is invoked.
Regards,
Alexey.
On Thursday 04 March 2010 05:13:49 am Alan Brogan wrote:
> Hello the list,
>
> I just lost a few hours trying to do this:
>
> $ cd ~/.subversion
> $ rm -f config
> $ ln -s /path/to/another/config .
>
> The link command kept failing, because "File exists"
> WTF ?
>
> Turns out I cannot remove ~/.subversion/* in one command, as some other
> process is protecting them from deletion (but not from editing).
>
> Eventually I did figure out the workaround, which is simply to join
> them into one command $ rm -f config && ln -s /path/to/another/config .
>
> But it was a £*({ing annoying few hours between problem arising and
> finding solution (and even more annoying that the solution was so
> simple)
>
> I can find no documentation of this feature at
> http://svnbook.red-bean.com/en/1.5/
> http://subversion.apache.org/faq.html
> http://mail-archives.apache.org/mod_mbox/subversion-users/
> so, I would like to ask:
>
> a) where is it documented ?
> b) can it be extended to other user-configurable directories ?
>
> Thank you for reading this far, and any writing you might be able to
> do.
Re: Could not un- and re- link ~/.subversion/config
Posted by Alexey Neyman <st...@att.net>.
"File exists" error means that the file is re-created after you delete it
but before 'ln'. The fact that you were able to achieve re-linking by
combining two commands into one (rm ... && ln ...) suggests that there is
something invoking 'svn' periodically (cron job?).
As far as I know, Subversion does not have any special logic for config
file protection. However, it does re-create this file with default
settings if it does not find one when 'svn' command is invoked.
Regards,
Alexey.
On Thursday 04 March 2010 05:13:49 am Alan Brogan wrote:
> Hello the list,
>
> I just lost a few hours trying to do this:
>
> $ cd ~/.subversion
> $ rm -f config
> $ ln -s /path/to/another/config .
>
> The link command kept failing, because "File exists"
> WTF ?
>
> Turns out I cannot remove ~/.subversion/* in one command, as some other
> process is protecting them from deletion (but not from editing).
>
> Eventually I did figure out the workaround, which is simply to join
> them into one command $ rm -f config && ln -s /path/to/another/config .
>
> But it was a £*({ing annoying few hours between problem arising and
> finding solution (and even more annoying that the solution was so
> simple)
>
> I can find no documentation of this feature at
> http://svnbook.red-bean.com/en/1.5/
> http://subversion.apache.org/faq.html
> http://mail-archives.apache.org/mod_mbox/subversion-users/
> so, I would like to ask:
>
> a) where is it documented ?
> b) can it be extended to other user-configurable directories ?
>
> Thank you for reading this far, and any writing you might be able to
> do.
Re: Could not un- and re- link ~/.subversion/config
Posted by Alan Brogan <ab...@altobridge.com>.
Tried that !
It is the directory which is protected, not just the config file.
Wtch this one:
$ cd ~/.subversion
$ wc -l README.txt
124 README.txt
$ echo > README.txt
$ wc -l README.txt
1 README.txt
$ rm -rf README.txt
$ wc -l README.txt
124 README.txt
Where did those 124 lines come back from ?
--
Alan
----- Original Message -----
From: "Erik Andersson" <ki...@gmail.com>
To: "Alan Brogan" <ab...@altobridge.com>
Cc: users@subversion.apache.org
Sent: Thursday, 4 March, 2010 15:45:31 GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: Could not un- and re- link ~/.subversion/config
try: "rm -Rf config"
Cheers / Erik
On Thu, Mar 4, 2010 at 2:13 PM, Alan Brogan <ab...@altobridge.com> wrote:
> Hello the list,
>
> I just lost a few hours trying to do this:
>
> $ cd ~/.subversion
> $ rm -f config
> $ ln -s /path/to/another/config .
>
> The link command kept failing, because "File exists"
> WTF ?
>
> Turns out I cannot remove ~/.subversion/* in one command, as some other
> process is protecting them from deletion (but not from editing).
>
> Eventually I did figure out the workaround, which is simply to join them
> into one command
> $ rm -f config && ln -s /path/to/another/config .
>
> But it was a £*({ing annoying few hours between problem arising and finding
> solution (and even more annoying that the solution was so simple)
>
> I can find no documentation of this feature at
> http://svnbook.red-bean.com/en/1.5/
> http://subversion.apache.org/faq.html
> http://mail-archives.apache.org/mod_mbox/subversion-users/
> so, I would like to ask:
>
> a) where is it documented ?
> b) can it be extended to other user-configurable directories ?
>
> Thank you for reading this far, and any writing you might be able to do.
>
> --
> Alan
>
Re: Could not un- and re- link ~/.subversion/config
Posted by Erik Andersson <ki...@gmail.com>.
try: "rm -Rf config"
Cheers / Erik
On Thu, Mar 4, 2010 at 2:13 PM, Alan Brogan <ab...@altobridge.com> wrote:
> Hello the list,
>
> I just lost a few hours trying to do this:
>
> $ cd ~/.subversion
> $ rm -f config
> $ ln -s /path/to/another/config .
>
> The link command kept failing, because "File exists"
> WTF ?
>
> Turns out I cannot remove ~/.subversion/* in one command, as some other
> process is protecting them from deletion (but not from editing).
>
> Eventually I did figure out the workaround, which is simply to join them
> into one command
> $ rm -f config && ln -s /path/to/another/config .
>
> But it was a £*({ing annoying few hours between problem arising and finding
> solution (and even more annoying that the solution was so simple)
>
> I can find no documentation of this feature at
> http://svnbook.red-bean.com/en/1.5/
> http://subversion.apache.org/faq.html
> http://mail-archives.apache.org/mod_mbox/subversion-users/
> so, I would like to ask:
>
> a) where is it documented ?
> b) can it be extended to other user-configurable directories ?
>
> Thank you for reading this far, and any writing you might be able to do.
>
> --
> Alan
>
Re: Could not un- and re- link ~/.subversion/config
Posted by Tyler Roscoe <ty...@cryptio.net>.
On Thu, Mar 04, 2010 at 01:13:49PM +0000, Alan Brogan wrote:
> I just lost a few hours trying to do this:
>
> $ cd ~/.subversion
> $ rm -f config
> $ ln -s /path/to/another/config .
>
> The link command kept failing, because "File exists"
> WTF ?
>
> Turns out I cannot remove ~/.subversion/* in one command, as some other process is protecting them from deletion (but not from editing).
>
> Eventually I did figure out the workaround, which is simply to join them into one command
> $ rm -f config && ln -s /path/to/another/config .
What OS is this? Was svn running at the time?
Sounds like an OS issue. AFAIK Subversion has no special logic to
protect its config files.
tyler