You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Peter Gebauer <pe...@it.su.se> on 2005/03/29 06:46:01 UTC

Symlinks as what they represent?

Hello.

Is it possible to use symlinks as what they represent instead of revision 
controlled files?

My problem is that I have dome direcories symlinked, but those entries are 
added as directories. When I "svn update" it says it can't update those 
directories because they are symlinks.
It should be fairly easy for the SVN CLI to understand that symlinks that 
are not part of the repository should be treated as _symlinks_, i.e as 
whatever they point to.
Can it be done with the current stable version?

/Peter

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

Re: Symlinks as what they represent?

Posted by Robert Mohr <mo...@gmail.com>.
Subversion allows you to version symlinks, but you should be able to
ignore them on a case-by-case basis with svn:ignore.


On Tue, 29 Mar 2005 08:46:01 +0200, Peter Gebauer
<pe...@it.su.se> wrote:
> Hello.
> 
> Is it possible to use symlinks as what they represent instead of revision
> controlled files?
> 
> My problem is that I have dome direcories symlinked, but those entries are
> added as directories. When I "svn update" it says it can't update those
> directories because they are symlinks.
> It should be fairly easy for the SVN CLI to understand that symlinks that
> are not part of the repository should be treated as _symlinks_, i.e as
> whatever they point to.
> Can it be done with the current stable version?
> 
> /Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
>

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

RE: Symlinks as what they represent?

Posted by Dale Worley <dw...@pingtel.com>.
> From: Peter Gebauer [mailto:pgeba@it.su.se]On Behalf Of Peter Gebauer
>
> Is it possible to use symlinks as what they represent instead
> of revision controlled files?

(I think in the Unix universe this behavior is called "following symlinks".
So you want to say "Can Subversion be made to follow symlinks in the WC?)

For individual files, you can use "hard links" to get the right effect
(because the kernel does the work).  But for various reasons, using a "hard
link" to make a directory appear in two different places is not a good idea.

Off the top of my head, I don't see any reason why the client couldn't
follow a symlink in the WC, but it would not be what you'd want the client
to do by default.  Unfortunately, this seems to be another example of
"client only annotation of a WC", like when you want to check out only three
subdirectories of a particular directory, you need some way to permanently
mark the WC directory so "svn update" doesn't fill out the directory.  And
there's no mechanism for that.

Dale


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