Symbolic link to a subversion folder / tree

View: New views
7 Messages — Rating Filter:   Alert me  

Symbolic link to a subversion folder / tree

by Whatty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Good afternoon,

 

I have an interesting problem.

 

Due to the constraints of the IDE(s) that I am using both Visual Studio and Eclipse, where the files that I wish to share must be in a particular folder or location but really are the same file (ie. Image files, css, javascript files, HBM(s) etc etc), I would really like to store those in a common location in my Subversion directory and create a symbolic link to that folder within subversion.

 

That way when each developer checks out the project from Subversion it automatically grabs the common files from the common location and when changes are made to the common file all projects referencing this get the latest and greatest.

 

I have yet to see a nice solution or way to accomplish this but maybe I am using the wrong term

 

Anyone got any advice or ideas

 

Whatty

 

Steve Whatmore, MBA, MCP, .NET
Senior Architect
416.598.1241 x245

-------------------------------------------------
PureFacts Financial Solutions
372 Bay Street, Suite 1400
Toronto, Ontario M5H 2W9
416.598.1241
main
888.596.9338 toll free
416.598.9226 fax

www.purefacts.com

PureFacts Financial Solutions is a Lynxdev Company
Please consider the environment before printing this e-mail.
This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.
Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.


Re: Symbolic link to a subversion folder / tree

by Tyler Roscoe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 03, 2009 at 04:41:33PM -0500, Steven Whatmore wrote:

> Due to the constraints of the IDE(s) that I am using both Visual
> Studio and Eclipse, where the files that I wish to share must be in a
> particular folder or location but really are the same file (ie. Image
> files, css, javascript files, HBM(s) etc etc), I would really like to
> store those in a common location in my Subversion directory and create
> a symbolic link to that folder within subversion.
>
> That way when each developer checks out the project from Subversion it
> automatically grabs the common files from the common location and when
> changes are made to the common file all projects referencing this get
> the latest and greatest.

Will svn externals do what you want?

tyler

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414226

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

RE: Symbolic link to a subversion folder / tree

by Whatty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I do not know, I guess I have some reading to do.

Thanks

Steve Whatmore, MBA, MCP, .NET
Senior Architect
416.598.1241 x245
-------------------------------------------------
PureFacts Financial Solutions
372 Bay Street, Suite 1400
Toronto, Ontario M5H 2W9
416.598.1241 main
888.596.9338 toll free
416.598.9226 fax

www.purefacts.com


PureFacts Financial Solutions is a Lynxdev Company
Please consider the environment before printing this e-mail.
This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.
Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.


-----Original Message-----
From: Tyler Roscoe [mailto:tyler@...]
Sent: Tuesday, November 03, 2009 5:00 PM
To: Steven Whatmore
Cc: users@...
Subject: Re: Symbolic link to a subversion folder / tree

On Tue, Nov 03, 2009 at 04:41:33PM -0500, Steven Whatmore wrote:

> Due to the constraints of the IDE(s) that I am using both Visual
> Studio and Eclipse, where the files that I wish to share must be in a
> particular folder or location but really are the same file (ie. Image
> files, css, javascript files, HBM(s) etc etc), I would really like to
> store those in a common location in my Subversion directory and create
> a symbolic link to that folder within subversion.
>
> That way when each developer checks out the project from Subversion it
> automatically grabs the common files from the common location and when
> changes are made to the common file all projects referencing this get
> the latest and greatest.

Will svn externals do what you want?

tyler

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.698 / Virus Database: 270.14.47/2478 - Release Date: 11/03/09 02:36:00

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414231

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

RE: Symbolic link to a subversion folder / tree

by Bob Archer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> On Tue, Nov 03, 2009 at 04:41:33PM -0500, Steven Whatmore wrote:
> > Due to the constraints of the IDE(s) that I am using both Visual
> > Studio and Eclipse, where the files that I wish to share must be
> in a
> > particular folder or location but really are the same file (ie.
> Image
> > files, css, javascript files, HBM(s) etc etc), I would really
> like to
> > store those in a common location in my Subversion directory and
> create
> > a symbolic link to that folder within subversion.
> >
> > That way when each developer checks out the project from
> Subversion it
> > automatically grabs the common files from the common location and
> when
> > changes are made to the common file all projects referencing this
> get
> > the latest and greatest.
>
> Will svn externals do what you want?
>
> tyler

> I do not know, I guess I have some reading to do.
>
> Thanks
>
> Steve Whatmore, MBA, MCP, .NET

Steve,

svn supports symbolic links on Linux and Mac I think. Symbolic link support was added to Windows Vista and is also in Win7 too. I'm not sure if svn supports them on those platforms though. You would have to try it.

I think file externals should get you what you want and work on windows OS.

BOb

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414235

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

RE: Symbolic link to a subversion folder / tree

by Whatty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Having done a very quick read this sounds exactly like what I was looking for.

Thanks again Tyler

Steve Whatmore, MBA, MCP, .NET
Senior Architect
416.598.1241 x245
-------------------------------------------------
PureFacts Financial Solutions
372 Bay Street, Suite 1400
Toronto, Ontario M5H 2W9
416.598.1241 main
888.596.9338 toll free
416.598.9226 fax

www.purefacts.com


PureFacts Financial Solutions is a Lynxdev Company
Please consider the environment before printing this e-mail.
This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.
Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.



-----Original Message-----
From: Tyler Roscoe [mailto:tyler@...]
Sent: Tuesday, November 03, 2009 5:00 PM
To: Steven Whatmore
Cc: users@...
Subject: Re: Symbolic link to a subversion folder / tree

On Tue, Nov 03, 2009 at 04:41:33PM -0500, Steven Whatmore wrote:

> Due to the constraints of the IDE(s) that I am using both Visual
> Studio and Eclipse, where the files that I wish to share must be in a
> particular folder or location but really are the same file (ie. Image
> files, css, javascript files, HBM(s) etc etc), I would really like to
> store those in a common location in my Subversion directory and create
> a symbolic link to that folder within subversion.
>
> That way when each developer checks out the project from Subversion it
> automatically grabs the common files from the common location and when
> changes are made to the common file all projects referencing this get
> the latest and greatest.

Will svn externals do what you want?

tyler

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.698 / Virus Database: 270.14.47/2478 - Release Date: 11/03/09 02:36:00

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414237

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

RE: Symbolic link to a subversion folder / tree

by Whatty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unfortunately the externals are disconnected from the primary working copy, does anyone know if this is going to be addressed in future versions?

I really would two-way checkout / commit functionality, however, for now I can work around that.

IMHO, it does seem given the way SVN works it does not seem like it would be that much of a update to use the MD5 hash of the file to determine whether the file has changed and mark the file for the commit to the external directory, but I am not a developer of SVN so I could be speaking out of turn.



Steve Whatmore, MBA, MCP, .NET
Senior Architect
416.598.1241 x245
-------------------------------------------------
PureFacts Financial Solutions
372 Bay Street, Suite 1400
Toronto, Ontario M5H 2W9
416.598.1241 main
888.596.9338 toll free
416.598.9226 fax

www.purefacts.com


PureFacts Financial Solutions is a Lynxdev Company
Please consider the environment before printing this e-mail.
This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.
Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.



-----Original Message-----
From: Tyler Roscoe [mailto:tyler@...]
Sent: Tuesday, November 03, 2009 5:00 PM
To: Steven Whatmore
Cc: users@...
Subject: Re: Symbolic link to a subversion folder / tree

On Tue, Nov 03, 2009 at 04:41:33PM -0500, Steven Whatmore wrote:

> Due to the constraints of the IDE(s) that I am using both Visual
> Studio and Eclipse, where the files that I wish to share must be in a
> particular folder or location but really are the same file (ie. Image
> files, css, javascript files, HBM(s) etc etc), I would really like to
> store those in a common location in my Subversion directory and create
> a symbolic link to that folder within subversion.
>
> That way when each developer checks out the project from Subversion it
> automatically grabs the common files from the common location and when
> changes are made to the common file all projects referencing this get
> the latest and greatest.

Will svn externals do what you want?

tyler

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.698 / Virus Database: 270.14.47/2478 - Release Date: 11/03/09 02:36:00

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414245

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

Re: Symbolic link to a subversion folder / tree

by Tyler Roscoe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 03, 2009 at 06:31:44PM -0500, Steve Whatmore wrote:
> Unfortunately the externals are disconnected from the primary working
> copy, does anyone know if this is going to be addressed in future
> versions?
>
> I really would two-way checkout / commit functionality, however, for
> now I can work around that.

You can commit into an external, though from the command-line you have
to explicitly commit there. I.e., if your working copy looks like this:

wc/
  code/
  external_resources/ <-- external

and you commit from wc/, svn won't notice any changes in
external_resources and you'll need to commit there separately.

SmartSVN, at least, has a "descend into externals" checkbox that does
what you would expect.

tyler

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414255

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].