You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by mal content <ar...@googlemail.com> on 2007/02/09 16:09:19 UTC

Quick question concerning symlinks

Hi.

What is the expected behaviour when checking in a symlink that points
to a file NOT under version control?

As an example:

$ ln -s /bin/sh shell
$ svn add shell

Under any circumstances, will /bin/sh be copied into the repository?
(In my actual situation, these are SSL certificates, so you can understand
why I want to make sure they don't end up in the repository).

thanks,
MC

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

Re: Quick question concerning symlinks

Posted by mal content <ar...@googlemail.com>.
On 09/02/07, Ryan Schmidt <su...@ryandesign.com> wrote:
> On Feb 9, 2007, at 10:09, mal content wrote:
>
> > What is the expected behaviour when checking in a symlink that points
> > to a file NOT under version control?
> >
> > As an example:
> >
> > $ ln -s /bin/sh shell
> > $ svn add shell
> >
> > Under any circumstances, will /bin/sh be copied into the repository?
> > (In my actual situation, these are SSL certificates, so you can
> > understand
> > why I want to make sure they don't end up in the repository).
>
> I would expect that /bin/sh will not be copied into the repository
> under any circumstances. You could try it out and see what happens.
>

I did try it and it wasn't copied in. From a long and bitter history
of frivolous
differences across platforms though (not Subversion, just computing in
general), I've learned that trying it on one platform is never enough...

thanks,
MC

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

Re: Quick question concerning symlinks

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 9, 2007, at 10:09, mal content wrote:

> What is the expected behaviour when checking in a symlink that points
> to a file NOT under version control?
>
> As an example:
>
> $ ln -s /bin/sh shell
> $ svn add shell
>
> Under any circumstances, will /bin/sh be copied into the repository?
> (In my actual situation, these are SSL certificates, so you can  
> understand
> why I want to make sure they don't end up in the repository).

I would expect that /bin/sh will not be copied into the repository  
under any circumstances. You could try it out and see what happens.



-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


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

Re: Quick question concerning symlinks

Posted by Erik Huelsmann <eh...@gmail.com>.
On 2/10/07, Ryan Schmidt <su...@ryandesign.com> wrote:
> On Feb 9, 2007, at 21:17, Jing Xue wrote:
>
> > On Fri, Feb 09, 2007 at 04:09:19PM +0000, mal content wrote:
> >
> >> What is the expected behaviour when checking in a symlink that points
> >> to a file NOT under version control?
> >>
> >> As an example:
> >>
> >> $ ln -s /bin/sh shell
> >> $ svn add shell
> >
> > Just curious - does anyone know what this link would become if it's
> > checked out
> > into a work copy in Windows?
>
> I believe it would become a text file containing the string "/bin/
> sh". Symlinks do not work / exist on Windows. You could try it out
> and see what happens.

"link /bin/sh" to be exact, but yea, why ask the question instead of trying?

bye,


Erik.

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

Re: Quick question concerning symlinks

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 9, 2007, at 21:17, Jing Xue wrote:

> On Fri, Feb 09, 2007 at 04:09:19PM +0000, mal content wrote:
>
>> What is the expected behaviour when checking in a symlink that points
>> to a file NOT under version control?
>>
>> As an example:
>>
>> $ ln -s /bin/sh shell
>> $ svn add shell
>
> Just curious - does anyone know what this link would become if it's  
> checked out
> into a work copy in Windows?

I believe it would become a text file containing the string "/bin/ 
sh". Symlinks do not work / exist on Windows. You could try it out  
and see what happens.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


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

Re: Quick question concerning symlinks

Posted by Jing Xue <jx...@digizenstudio.com>.
On Fri, Feb 09, 2007 at 04:09:19PM +0000, mal content wrote:
> Hi.
> 
> What is the expected behaviour when checking in a symlink that points
> to a file NOT under version control?
> 
> As an example:
> 
> $ ln -s /bin/sh shell
> $ svn add shell

Just curious - does anyone know what this link would become if it's checked out
into a work copy in Windows?

Thanks.
-- 
Jing Xue

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