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

Re: update a file automatically upon committing another file.

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Wed, 25 Nov 2009 08:10:53 -0600

On Nov 23, 2009, at 06:54, kalhan wrote:

> I want to know, if the below requirement is possible in subversion.
> There are two files a and b.
> I want b to be updated, whenever a is changed.
> Could someone let me know, if this is possible in subversion?

That depends on what you mean.

If you want a and b to be identical, then you could use svn:externals (if you're using Subversion 1.5 or greater on the client). Or you could use symbolic links (as long as you're not using Windows on the client).

If you mean that when you make a change to a, you want some other related change to occur in b, but files a and b will not be identical, then you would have to script that using a post-commit hook script. The hook script would have to maintain a server-side working copy in which to make your desired changes, then commit them.

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

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-25 15:12:15 CET

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.