[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Symlinks from Windoze?

From: Monks, Peter <peter.monks_at_vignette.com>
Date: 2004-08-13 03:39:24 CEST

G'day Josh and Erik,

Thanks for your reply, but I don't think that's right, at least not
according to the following paragraph (from [1]):

" When a user adds a unix symlink to version control and commits, the
repository stores the object as a file with the "svn:special" property
attached. When the client sees this property during checkouts and
updates, the repository file is translated back into a symlink within
the working copy. On win32 systems, the client does no translation, and
the user sees just an ordinary file. (But a win32 user can hand-edit the
contents of this file, which will still have an affect of changing the
symlink on a unix system.)"

Note in particular the comment about win32 clients - doesn't that mean
that a win32 SVN client will "expand" a symlink in the repository into
what looks like a copy of the file (but actually isn't)?

Or have I misunderstood?

Cheers,
Peter

[1] http://subversion.tigris.org/svn_1.1_releasenotes.html

----------------------------------------------------------------------
Peter Monks http://www.sydneyclimbing.com/
pmonks_at_sydneyclimbing.com http://www.geocities.com/yosemite/4455/
----------------------------------------------------------------------

> -----Original Message-----
> From: Josh Pieper [mailto:josh@vignette.com] On Behalf Of Josh Pieper
> Sent: Thursday, 12 August 2004 6:34pm
> To: Monks, Peter
> Cc: Ben Collins-Sussman; users@subversion.tigris.org
> Subject: Re: Symlinks from Windoze?
>
>
> Monks, Peter wrote:
> > G'day Ben,
> >
> > Ooooh nice!! And after I've done the commit on the Windoze
> box, linky
> > will be repopulated with the contents of foo.txt? Or do I need to
> > update it after I've committed?
>
> No, Windows clients will only ever see the "link foo" file. Windows
> does not support symbolic links.
>
> Second, If you did want to do this, you should use:
>
> echo -n "link foo" > my_link
>
> If you don't, the trailing newline will be treated as part of the
> linked-to file. This is really just a hack, and not an officially
> exported or supported API so it may change in the future.
>
> -Josh
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 13 03:40:11 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.