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

RE: svn update in post-commit hook

From: Rob Brandt <bronto_at_csd-bes.net>
Date: 2005-11-08 20:40:02 CET

I was hoping to avoid programming anything more than shell or perl. I
don't do
C. THanks for clearing up the protocol issue, I'll stick with http. I had
noted the 3rd slash - it's actually the start of the path.

Rob

Quoting "Gale, David" <David.Gale@Hypertherm.com>:

> Rob Brandt wrote:
>> svn --newbie
>>
>> I have svn up and running on my debian server, using tortoise-svn on
>> XP workstations.
>>
>> I would like to set up something that would "publish" HEAD to a web
>> root directory on each commit. This is a development server, not
>> "live". I've been reading the docs and it seems like it should be
>> straightforward, but I just starting looking at the command line
>> arguments and I can't think through how this is going to work.
>> Specifically, permissions. My projects need to be password
>> protected, and the "published" files need to have the right
>> user/group permissions on the server.
>
> Have you checked the FAQ?
> http://subversion.tigris.org/faq.html#website-auto-update
>
> Use that as a starting point. Changing permissions, if need be, should
> be a straightforward modification of the code.
>
>> I have been fooling around with the command line client, and I can get
>> checkouts/updates to work via http://, but not file://. I'm using
>> AuthType: Basic. Doing a checkout/update as root works, but the
>> files then are owned by user/group root. I see that there are
>> switches for username/password in checkout/update, but that seems to
>> be for svn authorization, not system user assignment.
>>
>> Can someone point me in the right direction, or tell me I'm barking
>> up the wrong tree?
>
> I think you're doing some erroneous barking. Generally, you'll want one
> access method to the repository, whether that's file:/// (note the third
> slash), http://, svn://, or svn+ssh://. Since you mention http://
> working, you probably want to use that method globally. (At a guess,
> the repository is owned by the apache user (nobody), and no one else has
> read access to the files; that's why you can only access the repository
> as root using file:///, which is pretty much as expected.)
>
>> Lastly, it occurs to me that on the live server I can install svn as
>> well, and when I want to update the live server I can just svn update
>> that as well, and it will be sync'ed with trunk effectively. Is that
>> a reasonable thing, or are there gotchas that I'm not seeing?
>
> Yep, that's pretty much exactly what you'll want.
>
> -David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 8 20:50:21 2005

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.