You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Robert P. J. Day" <rp...@mindspring.com> on 2004/04/04 13:45:49 UTC

how to check in a symlink?

  after reading the online docs, i'm not sure why i can't create
and check in a simple symlink.  i created a symlink in the current
working directory, and just tried:

  $ svn add <linkname>

and got:

svn: Unsupported node kind for path '<linkname>'

  i thought that symlinks in subversion were a done deal.  do i have
to do something special to add a symlink to the repo?

rday

p.s.  i'm using subversion 1.0.1 under fedora core 1.


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

Re: how to check in a symlink?

Posted by Erik Huelsmann <e....@gmx.net>.
Hi Robert,

> The summary reads "support versioning of symlinks", and the description 
> reads (in part):
> 
>   "Symbolic links, etc, are supported
> 
>   "Subversion will handle symbolic links ("shortcuts"), multiple hard
>   links, and other special file types as long as their semantics are
>   compatible with version control."
> 
> given that this issue is dated april of 2002 (two years ago), i just 
> assumed that this meant symlinks would be supported by now.  since that's 
> not the case, how does one interpret that issue i linked to?  just 
> curious.

But the status of the issue is NEW, not RESOLVED with resolution FIXED which
is what would be required if the feature were implemented correctly. Also
the project front page mentions that symlinks are expected (if at all possible
in a cross-platform way) to be a post-1.0 feature. I'm sorry, but for now,
you're out of luck with Subversion for versioning symlinks....

bye,

Erik.

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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

Re: how to check in a symlink?

Posted by Erik Huelsmann <e....@gmx.net>.
> > I seem to remember it  in the Post-1.0 feature-list.  
> > Checking the change log, I can see that it was removed 6 Mar 2004 with 
> > the comment "Remove the symbolic link plan; we don't really have one, 
> > and don't appear to be headed toward one either."  That comment should 
> > probably go into the Issue.
> > 
> > That's unfortunate, that's a feature that would be really useful.
> 
> uh ... yeah, since that's a common complaint about CVS.  i'm curious --
> how difficult is this?  admittedly, i haven't thought about it very hard,
> but does supporting symlinks really represent a level of complexity that
> requires an actual "plan"?

Since the concept would have to be portable over several different OSes, I
guess some thorough work needs to be done in order to get it "just right". One
of the problems would be: what would a working copy with symlinks in them
look like on Windows?

bye,


Erik.

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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

RE: how to check in a soymilk?

Posted by Jing-Reng Huang <jr...@realtek.com.tw>.
Hi Jeff, 

> few weeks ago.  After posting it, Ross Mark pointed out his solution 
> http://www.contactor.se/~dast/svnusers/archive-2003-08/0255.shtml

  I had tested this script and found it has "space" filename/directory name resistance. 
  Under Windows system, user tends to create "space" filename which has space in the filename string. 
  
  JSVN GUI front-end has this penalty, too. However, I cannot register their E-Mail list for this. 
  Pysvn Workbench cannot handle such filename, too.  It can show, but buggy after shown. 

  Subversion can handle such filename correctly.


--
Jing-Reng Huang 
A  Subversion repository admin. since Subversion 1.0.0

Re: how to check in a symlink?

Posted by Jeff Bowden <jl...@houseofdistraction.com>.
Travis P wrote:

>
> On Apr 4, 2004, at 10:46 AM, Brian W. Fitzpatrick wrote:
>
>> On Sun, 2004-04-04 at 10:41, Robert P. J. Day wrote:
>>
>>> On Sun, 4 Apr 2004, Travis P wrote:
>>>
>>>> That's unfortunate, that's a feature that would be really useful.
>>>
>>>
>>> uh ... yeah, since that's a common complaint about CVS.  i'm curious --
>>> how difficult is this?  admittedly, i haven't thought about it very 
>>> hard,
>>> but does supporting symlinks really represent a level of complexity 
>>> that
>>> requires an actual "plan"?
>>
>>
>> Absolutely. The world that Subversion lives in is made up of many
>> different operating systems, and symlinks aren't the same thing on all
>> of them.
>
>
> On Apr 4, 2004, at 10:47 AM, Erik Huelsmann wrote:
>
>> Since the concept would have to be portable over several different 
>> OSes, I
>> guess some thorough work needs to be done in order to get it "just 
>> right". One
>> of the problems would be: what would a working copy with symlinks in 
>> them
>> look like on Windows?
>
>
> With deference to Erik and Brian's comments (and now John's), my 
> perception is also that it is a common CVS complaint and one that I 
> definitely hoped Subversion would alleviate (and maybe someday it 
> will, but the prognosis indicates it won't be soon).
>
> Re: the cross-platform issue
> Do any other VC systems attempt to handle the challenge?
>
> Re: workarounds
> My current idea for a workaround is to put .symlinks file in 
> directories that need them with content like:
>   #!/bin/sh
>   ln -sf execWrapper.pl wrappedprog
> and then have a wrapper that kicks off a 'find' to find and execute 
> them on checkouts/updates.  It would be nice to kick it off in the 
> background since I wouldn't necessarily want to wait for it most of 
> the time.  But then, in cases where I need the links to be in place, I 
> wouldn't know when it was finished.  Maybe I'll just require the 
> execution of an update-symlinks command (that would be same type of 
> 'find' idea, but could be foreground or background and re-executed 
> whenever desired).
>
> I've rejected the idea of using properties because that won't work 
> with export.
>
> Anybody already tackle this and have any advice to share?


I posted this scheme 
http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=8168  a 
few weeks ago.  After posting it, Ross Mark pointed out his solution 
http://www.contactor.se/~dast/svnusers/archive-2003-08/0255.shtml

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

Re: how to check in a symlink?

Posted by Travis P <sv...@castle.fastmail.fm>.
On Apr 4, 2004, at 10:46 AM, Brian W. Fitzpatrick wrote:

> On Sun, 2004-04-04 at 10:41, Robert P. J. Day wrote:
>> On Sun, 4 Apr 2004, Travis P wrote:
>>> That's unfortunate, that's a feature that would be really useful.
>>
>> uh ... yeah, since that's a common complaint about CVS.  i'm curious 
>> --
>> how difficult is this?  admittedly, i haven't thought about it very 
>> hard,
>> but does supporting symlinks really represent a level of complexity 
>> that
>> requires an actual "plan"?
>
> Absolutely. The world that Subversion lives in is made up of many
> different operating systems, and symlinks aren't the same thing on all
> of them.

On Apr 4, 2004, at 10:47 AM, Erik Huelsmann wrote:

> Since the concept would have to be portable over several different 
> OSes, I
> guess some thorough work needs to be done in order to get it "just 
> right". One
> of the problems would be: what would a working copy with symlinks in 
> them
> look like on Windows?

With deference to Erik and Brian's comments (and now John's), my 
perception is also that it is a common CVS complaint and one that I 
definitely hoped Subversion would alleviate (and maybe someday it will, 
but the prognosis indicates it won't be soon).

Re: the cross-platform issue
Do any other VC systems attempt to handle the challenge?

Re: workarounds
My current idea for a workaround is to put .symlinks file in 
directories that need them with content like:
   #!/bin/sh
   ln -sf execWrapper.pl wrappedprog
and then have a wrapper that kicks off a 'find' to find and execute 
them on checkouts/updates.  It would be nice to kick it off in the 
background since I wouldn't necessarily want to wait for it most of the 
time.  But then, in cases where I need the links to be in place, I 
wouldn't know when it was finished.  Maybe I'll just require the 
execution of an update-symlinks command (that would be same type of 
'find' idea, but could be foreground or background and re-executed 
whenever desired).

I've rejected the idea of using properties because that won't work with 
export.

Anybody already tackle this and have any advice to share?

-Travis


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

Re: how to check in a symlink?

Posted by "Brian W. Fitzpatrick" <fi...@red-bean.com>.
On Sun, 2004-04-04 at 10:41, Robert P. J. Day wrote:
> On Sun, 4 Apr 2004, Travis P wrote:

> > That's unfortunate, that's a feature that would be really useful.
> 
> uh ... yeah, since that's a common complaint about CVS.  i'm curious --
> how difficult is this?  admittedly, i haven't thought about it very hard,
> but does supporting symlinks really represent a level of complexity that
> requires an actual "plan"?

Absolutely. The world that Subversion lives in is made up of many
different operating systems, and symlinks aren't the same thing on all
of them.

-Fitz


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

Re: how to check in a symlink?

Posted by Juanma Barranquero <jm...@wke.es>.
On Mon, 5 Apr 2004 08:28:45 +1200
Corrin Lakeland <la...@cs.otago.ac.nz> wrote:

> Windows is a family of OSs, none of which support symlinks.

...to files.

Win2K and XP do support junctions (soft links) to directories.

                                                                Juanma



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


Re: how to check in a symlink?

Posted by Corrin Lakeland <la...@cs.otago.ac.nz>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 05 Apr 2004 05:45, Jeff Bowden wrote:

> > Just the fact that Subversion is portable to
> > operating systems that do not natively support symlinks is but one
> > difficulty.

> What OS besides windows doesn't support symlinks?

Windows is a family of OSs, none of which support symlinks.

Corrin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAcHAAi5A0ZsG8x8cRAmY4AKCZK1buI5PmVVihSIWuSCTGI83jKwCdEqeN
Yo8k832n6s2BEOFfMy4B5XE=
=Mw3O
-----END PGP SIGNATURE-----

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

Re: how to check in a symlink?

Posted by "Brian W. Fitzpatrick" <fi...@red-bean.com>.
On Sun, 2004-04-04 at 10:58, Robert P. J. Day wrote:
> On Sun, 4 Apr 2004, John Peacock wrote:
> 
> > Robert P. J. Day wrote:
> > > uh ... yeah, since that's a common complaint about CVS.  i'm curious --
> > > how difficult is this?  admittedly, i haven't thought about it very hard,
> > > but does supporting symlinks really represent a level of complexity that
> > > requires an actual "plan"?
> > 
> > It is not trivial.  Just the fact that Subversion is portable to operating 
> > systems that do not natively support symlinks is but one difficulty.  It will 
> > probably require a schema change to store symlinks in the DB, as well as code in 
> > the libsvn_wc library (one of the most complex) to handle it.
> 
> ok, i feel suitably chastised. :-) 

No need... it's a perfectly reasonable request--it's just not a high
priority for most Subversion developers right now, and it's going to
take a bit of work to get it Done Right.

-Fitz


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

Re: how to check in a symlink?

Posted by "Robert P. J. Day" <rp...@mindspring.com>.

On Sun, 4 Apr 2004, John Peacock wrote:

> Robert P. J. Day wrote:
> > uh ... yeah, since that's a common complaint about CVS.  i'm curious --
> > how difficult is this?  admittedly, i haven't thought about it very hard,
> > but does supporting symlinks really represent a level of complexity that
> > requires an actual "plan"?
> 
> It is not trivial.  Just the fact that Subversion is portable to operating 
> systems that do not natively support symlinks is but one difficulty.  It will 
> probably require a schema change to store symlinks in the DB, as well as code in 
> the libsvn_wc library (one of the most complex) to handle it.

ok, i feel suitably chastised. :-)  now i can just go back to moping about
duke losing to uconn last night.  grrrr .....


rday

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

Re: how to check in a symlink?

Posted by Jeff Bowden <jl...@houseofdistraction.com>.
John Peacock wrote:

> Robert P. J. Day wrote:
>
>> uh ... yeah, since that's a common complaint about CVS.  i'm curious --
>> how difficult is this?  admittedly, i haven't thought about it very 
>> hard,
>> but does supporting symlinks really represent a level of complexity that
>> requires an actual "plan"?
>
>
> It is not trivial.  Just the fact that Subversion is portable to 
> operating systems that do not natively support symlinks is but one 
> difficulty.  It will probably require a schema change to store 
> symlinks in the DB, as well as code in the libsvn_wc library (one of 
> the most complex) to handle it.


What OS besides windows doesn't support symlinks?


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

Re: how to check in a symlink?

Posted by John Peacock <jp...@rowman.com>.
Robert P. J. Day wrote:
> uh ... yeah, since that's a common complaint about CVS.  i'm curious --
> how difficult is this?  admittedly, i haven't thought about it very hard,
> but does supporting symlinks really represent a level of complexity that
> requires an actual "plan"?

It is not trivial.  Just the fact that Subversion is portable to operating 
systems that do not natively support symlinks is but one difficulty.  It will 
probably require a schema change to store symlinks in the DB, as well as code in 
the libsvn_wc library (one of the most complex) to handle it.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

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

Re: how to check in a symlink?

Posted by "Robert P. J. Day" <rp...@mindspring.com>.

On Sun, 4 Apr 2004, Travis P wrote:

> A comment in 667 does mention:
>    "Front page now says Post-1.0."
> 
> If you visit the front page, you'll see that now it's not mentioned 
> whatsoever. 

i was going to mention that, but i figured i'd already embarrassed myself
sufficiently by not knowing the status of symlinks in the first place. :-)

> I seem to remember it  in the Post-1.0 feature-list.  
> Checking the change log, I can see that it was removed 6 Mar 2004 with 
> the comment "Remove the symbolic link plan; we don't really have one, 
> and don't appear to be headed toward one either."  That comment should 
> probably go into the Issue.
> 
> That's unfortunate, that's a feature that would be really useful.

uh ... yeah, since that's a common complaint about CVS.  i'm curious --
how difficult is this?  admittedly, i haven't thought about it very hard,
but does supporting symlinks really represent a level of complexity that
requires an actual "plan"?

rday

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

Re: how to check in a symlink?

Posted by Travis P <sv...@castle.fastmail.fm>.
On Apr 4, 2004, at 9:36 AM, Robert P. J. Day wrote:

>
> On Sun, 4 Apr 2004, Max Bowsher wrote:
>
>> Sorry, you are mistaken. Subversion has no support for symlinks.
>
> ok, that's a little odd since, before i posted, i did a search of the
> subversion issues database and found the following:
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=677
>
> The summary reads "support versioning of symlinks", and the description
> reads (in part):
>
>   "Symbolic links, etc, are supported
>
>   "Subversion will handle symbolic links ("shortcuts"), multiple hard
>   links, and other special file types as long as their semantics are
>   compatible with version control."
>
> given that this issue is dated april of 2002 (two years ago), i just
> assumed that this meant symlinks would be supported by now.  since 
> that's
> not the case, how does one interpret that issue i linked to?  just
> curious.

A comment in 667 does mention:
   "Front page now says Post-1.0."

If you visit the front page, you'll see that now it's not mentioned 
whatsoever. I seem to remember it  in the Post-1.0 feature-list.  
Checking the change log, I can see that it was removed 6 Mar 2004 with 
the comment "Remove the symbolic link plan; we don't really have one, 
and don't appear to be headed toward one either."  That comment should 
probably go into the Issue.

That's unfortunate, that's a feature that would be really useful.

-Travis


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

Re: how to check in a symlink?

Posted by "Robert P. J. Day" <rp...@mindspring.com>.
On Sun, 4 Apr 2004, Max Bowsher wrote:

> Robert P. J. Day wrote:
> >   after reading the online docs, i'm not sure why i can't create
> > and check in a simple symlink.  i created a symlink in the current
> > working directory, and just tried:
> > 
> >   $ svn add <linkname>
> > 
> > and got:
> > 
> > svn: Unsupported node kind for path '<linkname>'
> > 
> >   i thought that symlinks in subversion were a done deal.  do i have
> > to do something special to add a symlink to the repo?
> 
> Sorry, you are mistaken. Subversion has no support for symlinks.

ok, that's a little odd since, before i posted, i did a search of the 
subversion issues database and found the following:

http://subversion.tigris.org/issues/show_bug.cgi?id=677

The summary reads "support versioning of symlinks", and the description 
reads (in part):

  "Symbolic links, etc, are supported

  "Subversion will handle symbolic links ("shortcuts"), multiple hard
  links, and other special file types as long as their semantics are
  compatible with version control."

given that this issue is dated april of 2002 (two years ago), i just 
assumed that this meant symlinks would be supported by now.  since that's 
not the case, how does one interpret that issue i linked to?  just 
curious.

rday

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

Re: how to check in a symlink?

Posted by Max Bowsher <ma...@ukf.net>.
Robert P. J. Day wrote:
>   after reading the online docs, i'm not sure why i can't create
> and check in a simple symlink.  i created a symlink in the current
> working directory, and just tried:
> 
>   $ svn add <linkname>
> 
> and got:
> 
> svn: Unsupported node kind for path '<linkname>'
> 
>   i thought that symlinks in subversion were a done deal.  do i have
> to do something special to add a symlink to the repo?

Sorry, you are mistaken. Subversion has no support for symlinks.

Max.


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