You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Karol Szkudlarek <ka...@mikronika.com.pl> on 2005/02/22 11:46:08 UTC

svn commit with symbolic link under windows

Hi!

I have the same problem as was reported by Henrik Ripa at 
users@subversion list in 15 Dec'04. I have question about current state 
of that bug. Is it fixed or opened, because I can't find anything about 
that bug with svn 1.1.x client.

Regards,
Karol

ps.

The original post (http://svn.haxx.se/users/archive-2004-12/0799.shtml)

Hello Subversion users

I'm using Subversion (among other things) to manage some web pages under
Linux. One of these pages needs a directory that exists elsewhere in the
file system. So I thought I'll use a symbolic link to that directory and
put that into Subversion. This way I can move it around if I need to.

I mostly manage these web pages from Windows and herein lies the
problem. Svn under Windows freaks out when it sees that symlink. If I
try to commit a get an error saying "... has unexpectedly changed
special status". I have put in a transcript that shows the problem below.

I was under the impression (from reading the FAQ) that Windows would
just ignore the specialiness of the symlink and use it as an ordinary
file. So, am I doing anything wrong or just thinking wrong or...?

Here is a transcript that shows the problem:

First under Linux
-----------------

0:gieron_at_subnav~/repos/test: svn st
0:gieron_at_subnav~/repos/test: ln -s /public/samba/nightly/ data
0:gieron_at_subnav~/repos/test: svn add data
A data
0:gieron_at_subnav~/repos/test: svn commit -m "Added a symlink."
Adding data
Transmitting file data .
Committed revision 118.
0:gieron_at_subnav~/repos/test: svn pl -v data
Properties on 'data':
    svn:special : *
0:gieron_at_subnav~/repos/test: svn --version
svn, version 1.1.0 (r11180)
     compiled Oct 1 2004, 10:24:30
...

Then under Windows
------------------

C:\Desk\Repos\test\henrik>svn up
A data
Uppdaterade till revision 118.

C:\Desk\Repos\test\henrik>svn st
~ data

C:\Desk\Repos\test\henrik>svn commit -m "Trying to commit although I
didn't change anything."
svn: Commit failed (details follow):
svn: Entry 'C:/Desk/Repos/test/henrik/data' has unexpectedly changed
special status

C:\Desk\Repos\test\henrik>svn pl -v data
Properties on 'data':
    svn:special : *

C:\Desk\Repos\test\henrik>svn --version
svn, version 1.1.1 (r11581)
     compiled Oct 23 2004, 14:47:47
...

-- 
Henrik Ripa - NordNav Technologies AB - LuleƄ/Sweden

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

Re: svn commit with symbolic link under windows

Posted by Karol Szkudlarek <ka...@mikronika.com.pl>.
Hi!

I found that it is the issue #2173. Has anybody is working on it? This 
defect is very annoying when you work with subversion links both under 
Windows and Linux.

Greets,
Karol

Karol Szkudlarek wrote:
> Hi!
> 
> I have the same problem as was reported by Henrik Ripa at 
> users@subversion list in 15 Dec'04. I have question about current state 
> of that bug. Is it fixed or opened, because I can't find anything about 
> that bug with svn 1.1.x client.
> 
> Regards,
> Karol
> 
> ps.
> 
> The original post (http://svn.haxx.se/users/archive-2004-12/0799.shtml)
> 
> Hello Subversion users
> 
> I'm using Subversion (among other things) to manage some web pages under
> Linux. One of these pages needs a directory that exists elsewhere in the
> file system. So I thought I'll use a symbolic link to that directory and
> put that into Subversion. This way I can move it around if I need to.
> 
> I mostly manage these web pages from Windows and herein lies the
> problem. Svn under Windows freaks out when it sees that symlink. If I
> try to commit a get an error saying "... has unexpectedly changed
> special status". I have put in a transcript that shows the problem below.
> 
> I was under the impression (from reading the FAQ) that Windows would
> just ignore the specialiness of the symlink and use it as an ordinary
> file. So, am I doing anything wrong or just thinking wrong or...?
> 
> Here is a transcript that shows the problem:
> 
> First under Linux
> -----------------
> 
> 0:gieron_at_subnav~/repos/test: svn st
> 0:gieron_at_subnav~/repos/test: ln -s /public/samba/nightly/ data
> 0:gieron_at_subnav~/repos/test: svn add data
> A data
> 0:gieron_at_subnav~/repos/test: svn commit -m "Added a symlink."
> Adding data
> Transmitting file data .
> Committed revision 118.
> 0:gieron_at_subnav~/repos/test: svn pl -v data
> Properties on 'data':
>    svn:special : *
> 0:gieron_at_subnav~/repos/test: svn --version
> svn, version 1.1.0 (r11180)
>     compiled Oct 1 2004, 10:24:30
> ...
> 
> Then under Windows
> ------------------
> 
> C:\Desk\Repos\test\henrik>svn up
> A data
> Uppdaterade till revision 118.
> 
> C:\Desk\Repos\test\henrik>svn st
> ~ data
> 
> C:\Desk\Repos\test\henrik>svn commit -m "Trying to commit although I
> didn't change anything."
> svn: Commit failed (details follow):
> svn: Entry 'C:/Desk/Repos/test/henrik/data' has unexpectedly changed
> special status
> 
> C:\Desk\Repos\test\henrik>svn pl -v data
> Properties on 'data':
>    svn:special : *
> 
> C:\Desk\Repos\test\henrik>svn --version
> svn, version 1.1.1 (r11581)
>     compiled Oct 23 2004, 14:47:47
> ...
> 


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