You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by kalhan <ka...@gmail.com> on 2009/11/23 12:54:01 UTC

update a file automatically upon committing another file.

Hi,
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?
Thanks,
Kalhan

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

Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.

Re: update a file automatically upon committing another file.

Posted by Andrey Repin <an...@freemail.ru>.
Greetings, kalhan!

> 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?

In which way updated?


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 23.11.2009, <20:33>

Sorry for my terrible english...

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

Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.

Re: update a file automatically upon committing another file.

Posted by Ryan Schmidt <su...@ryandesign.com>.
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 <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.