You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Miller, Eric" <Er...@amd.com> on 2008/02/20 20:30:51 UTC

Symlinks

Could someone outline for me how symlinks are supposed to work in svn?

I'm seeing some spots where the client seems to jump through a link to a
directory and other times it doesn't.

Is there a hard and fast rule of how svn should treat symlinks?

Thanks,

Eric



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


RE: Symlinks

Posted by bf...@verizon.net.
On Wed, 20 Feb 2008, Miller, Eric wrote:
> > -----Original Message-----
> > From: Kenneth Porter [mailto:shiva@sewingwitch.com]
> > Sent: Wednesday, February 20, 2008 2:22 PM
> > 
> > On Wednesday, February 20, 2008 12:30 PM -0800 "Miller, Eric"
> > <Er...@amd.com> wrote:
> > 
> > > Is there a hard and fast rule of how svn should treat symlinks?
> > 
> > I recall reading in a thread in the last few days that symlinks are a
> > unique, versioned type of object, distinct from directories and files.
> > Only
> > true directories, not symlinks, should be traversed by recursive
> > operations.
> 
> That's what I thought as well.  I've got a couple of testcases that
> don't appear to work in this manner.  I'll send them to the dev list.

Unfortunately links and merges are a delicate area, see:
http://subversion.tigris.org/issues/show_bug.cgi?id=3051
..for example.  Also, if you a conflicted link the behavior
gets even worse (an unlock and manual remove of a temp file
is required).

I'll have to visit the dev list to see what your issue is!



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

RE: Symlinks

Posted by "Miller, Eric" <Er...@amd.com>.
> -----Original Message-----
> From: Kenneth Porter [mailto:shiva@sewingwitch.com]
> Sent: Wednesday, February 20, 2008 2:22 PM
> 
> On Wednesday, February 20, 2008 12:30 PM -0800 "Miller, Eric"
> <Er...@amd.com> wrote:
> 
> > Is there a hard and fast rule of how svn should treat symlinks?
> 
> I recall reading in a thread in the last few days that symlinks are a
> unique, versioned type of object, distinct from directories and files.
> Only
> true directories, not symlinks, should be traversed by recursive
> operations.

That's what I thought as well.  I've got a couple of testcases that
don't appear to work in this manner.  I'll send them to the dev list.

Thanks,

Eric



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


Re: Symlinks

Posted by Kenneth Porter <sh...@sewingwitch.com>.
On Wednesday, February 20, 2008 12:30 PM -0800 "Miller, Eric" 
<Er...@amd.com> wrote:

> Is there a hard and fast rule of how svn should treat symlinks?

I recall reading in a thread in the last few days that symlinks are a 
unique, versioned type of object, distinct from directories and files. Only 
true directories, not symlinks, should be traversed by recursive operations.


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

Re: Symlinks

Posted by David O'Shea <da...@s3group.com>.
On 20/02/2008 22:22, Miller, Eric wrote:
> There are a few open bugs on symbolic links.
> All of these looked fixed on trunk to me:
> http://subversion.tigris.org/issues/show_bug.cgi?id=2284
> http://subversion.tigris.org/issues/show_bug.cgi?id=2305
> http://subversion.tigris.org/issues/show_bug.cgi?id=2352
> http://subversion.tigris.org/issues/show_bug.cgi?id=2631
> http://subversion.tigris.org/issues/show_bug.cgi?id=2716

There are other issues too. The following sequence fails both on 1.4 and 
on 1.5alpha2 with "No such file or directory":

svnadmin create repos
svn co file://$(pwd)/repos tmp

cd tmp
svn mkdir trunk trunk/a trunk/b trunk/c
touch trunk/a/file
ln -s ../a/file trunk/c/link
svn add trunk/a/file trunk/c/link
svn ci -m "Create skeleton."
svn cp trunk branches
svn ci -m "Make branch."

touch trunk/b/file
svn rm trunk/a/file
rm trunk/c/link
ln -s ../b/file trunk/c/link
svn ci -m "Make changes."

svn merge -c3 trunk branches


Regards,

David.
-- 

The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s).
Please direct any additional queries to: communications@s3group.com.
Thank You.
Silicon and Software Systems Limited. Registered in Ireland no. 378073.
Registered Office: South County Business Park, Leopardstown, Dublin 18

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

RE: Symlinks

Posted by "Miller, Eric" <Er...@amd.com>.
> -----Original Message-----
> From: Erik Huelsmann [mailto:ehuels@gmail.com]
> Sent: Wednesday, February 20, 2008 1:50 PM
> 
> On Wed, Feb 20, 2008 at 9:30 PM, Miller, Eric <Er...@amd.com>
wrote:
> > Could someone outline for me how symlinks are supposed to work in
svn?
> >
> >  I'm seeing some spots where the client seems to jump through a link
to
> a
> >  directory and other times it doesn't.
> >
> >  Is there a hard and fast rule of how svn should treat symlinks?
> 
> The client should treat symlinks as versionable objects.

Ok - I attached a script to reproduce these then (ran with r29434).

bug 1a,b:  svn revert <link> seems to jump through the link.
bug 2: svn st <link> seems to jump through the link.

There are a few open bugs on symbolic links.
All of these looked fixed on trunk to me:
http://subversion.tigris.org/issues/show_bug.cgi?id=2284
http://subversion.tigris.org/issues/show_bug.cgi?id=2305
http://subversion.tigris.org/issues/show_bug.cgi?id=2352
http://subversion.tigris.org/issues/show_bug.cgi?id=2631
http://subversion.tigris.org/issues/show_bug.cgi?id=2716

Should I file a bug?

Thanks,

Eric