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

Re: SVN + viewvc

From: David Weintraub <qazwart_at_gmail.com>
Date: Fri, 22 Aug 2008 12:51:42 -0400

On Aug 22, 2008, at 11:02, David Weintraub wrote:
>> Here's a possible solution:
>>
>> Run a cronjob to
>>
>> 1). Do a hotcopy of your subversion repository
>> 2). Do a chown to the viewvc user
>> 3). Do an rsync to a copy of your Subversion repository on your server
>> where viewvc runs.
>>
>> This means that your commit results won't show up on viewvc until the
>> next sync, but if you run the cronjob every ten minutes or so, it
>> might be good enough.

On Fri, Aug 22, 2008 at 12:25 PM, Ryan Schmidt
<subversion-2008c_at_ryandesign.com> wrote:
>
> If you're going to do that, you may as well use svnsync in the post-commit
> hook to get the copy of the repository on the viewvc server to be always up
> to date.

I was going to mention that svnsync doesn't do what Himanshu needs:
Having different users for both the source and destination
repositories. I looked at the command when it first came out in
Subversion 1.4, and simply didn't find it all that useful because of
this issue.

However, when checking out the Subversion book for revision 1.5, I see
that svnsync now does handle different users in both the original and
mirror repositories. Thus making it much more useful.

So, the best solution is using "svnsync" to sync the two repositories:
One the actual Subversion repository, and the other a mirror
repository for ViewVC use. Getting SvnSync to work can take a little
tinkering to get to work, but really no more than ViewVC (especially
if you didn't have CGI scripting enabled in your Apache repository)
and certainly a lot less than FishEye. Plus, the Subversion book is
pretty clear about the steps to get it to work. See
<http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.replication>
for details.

--
David Weintraub
qazwart_at_gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-22 18:52:04 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.