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

Re: Linking files together so commited changes updates both

From: Marc Haisenko <haisenko_at_comdasys.com>
Date: 2006-03-14 10:10:16 CET

On Tuesday 14 March 2006 09:47, Jean-Paul Hamerton wrote:
> I have 2 CPP files that are the same in the SVN project but different
> directories. When I update one I have to always have to update the other.
>
> I would like not to have to do this last step as some times I forget.
> I was thinking to move all this stuff to a "common" directory.
> But I thought maybe SVN can do this for me just have 2 files that are
> linked together if you update one the other is always updated.
>
> any help?
>
> thx

No SubVersion can't do this... some version control systems a capable of such
things but I personally think this is potentially dangerous:

Imagine you could link them together so that changes in one file appear in the
other. Your file is now existing in two different contexts. Imagine, one year
from now, you have forgotten that they are linked and change it in one
context and a few days later some developer working on the second context is
wondering why his application is crashing all the time... even worse is when
it's the customer experiencing problems because of this.

So having a "common" directory would be a better solution as it is immediately
obvious that this directory is shared. You might also read about "externals"
in the SubVersion book, that could probably ease up your task (especially
since Windows unfortunately doesn't support symlinks...)

> jippie

C'ya,
        Marc

-- 
Marc Haisenko
Comdasys AG
Rüdesheimer Straße 7
D-80686 München
Tel:   +49 (0)89 - 548 43 33 0
Fax:   +49 (0)89 - 548 43 33 29
e-mail: haisenko@comdasys.com
http://www.comdasys.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 14 10:11:30 2006

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.