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

Re: syncing two directories with SVN repository.

From: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Thu, 23 Sep 2010 15:14:48 -0500

On Sep 23, 2010, at 14:41, Charan wrote:

> I have two requirements but I'm not sure whether SVN is capable of doing it
>
> 1. syncing two directories
> Suppose I have two directories like http://192.168.15.2/svn/develop/data/docs/ and http://192.168.15.2/svn/deploy/data/docs/. Developers always update 1st url and svn should be able to sync the 2nd url with the 1st url updates. Is this really possible with svn commands ?(I don't think so). Even if I want to use some cronjob which can do this , there are some hundreds of directories like this which will hectic for me to use a cron job.

If those are working copies of the same place in the same repository, then you can run "svn up" to sync both of them with the server. If these hundreds of directories are all within a common repository parent, you can just "svn up" the parent. If not, you'd have to "svn up" each of them.

> 2. Standard SVN tree structure
> Suppose I have the below url
> http://192.168.15.2/svn/develop/data/docs/trunk/<files>
> sometimes developers tend to check in files directly to http://192.168.15.2/svn/develop/data/docs/<files> which I want to avoid this. Is this possible?. They should only check in within docs/trunk/ otherwise svn shouldn't allow check in directly to docs/.

You can write a pre-commit hook to prevent that.
Received on 2010-09-23 22:16:16 CEST

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.