You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Benedetto Bernardini <bb...@gmail.com> on 2007/07/07 15:03:06 UTC

auto commit on server

Hi,

I have a linux machine with the repository of subversion, and a windows
machine that is the test-server.

I wanna, on commit in the repository, an auto-update on server.
Is it possible?

thx!!!;)

Re: auto commit on server

Posted by Marc Haisenko <ha...@comdasys.com>.
On Monday 09 July 2007 11:29, Benedetto Bernardini wrote:
> But repository and server are on two different machine.
> thx!!!;)

SubVersion doesn't care about that. If you can checkout, you run "svn up" and 
you're fine.

-- 
Marc Haisenko
Comdasys AG

Rüdesheimer Straße 7
D-80686 München
Tel:   +49 (0)89 - 548 433 321
e-mail: haisenko@comdasys.com
http://www.comdasys.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: auto commit on server

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jul 9, 2007, at 04:29, Benedetto Bernardini wrote:

> 2007/7/8, Karl Fogel:
>
> > Benedetto Bernardini wrote:
> >
> >> I have a linux machine with the repository of subversion, and a
> >> windows machine that is the test-server.
> >>
> >> I wanna, on commit in the repository, an auto-update on server.
> >> Is it possible?
>>
>> You might also be looking for this:
>>
>>    http://subversion.tigris.org/faq.html#website-auto-update
>
> But repository and server are on two different machine.
> thx!!!;)

Ok. Then you will need to find some way, in the post-commit hook on  
the Subversion server, to notify the web server that it needs to get  
new content from the repository.

If both servers were running a UNIX-like operating system, this would  
be very easy to do. Your post-commit hook on the repo server would  
simply call "/usr/bin/ssh someuser@webserver /usr/bin/svn update / 
path/to/workingcopy" which would log in to the web server with ssh,  
run the svn update command on its working copy, and log out.

If your web server is running Windows, you'll need to either run  
cygwin on it, so that you get all the nice UNIX utilities and can use  
ssh as above, or find some other way to notify the Windows machine  
that it should do an svn update of its working copy.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Re: auto commit on server

Posted by Fredrik Arenhag <fr...@musicbrigade.com>.
________________________________

From: Benedetto Bernardini [mailto:bb.bek69@gmail.com] 

But repository and server are on two different machine.
thx!!!;)


2007/7/8, Karl Fogel <kf...@red-bean.com>: 

	egoots <eg...@gmail.com> writes:
	> Benedetto Bernardini wrote:
	>> I have a linux machine with the repository of subversion, and
a
	>> windows machine that is the test-server. 
	>>
	>> I wanna, on commit in the repository, an auto-update on
server.
	>> Is it possible?
	>>
	>
	> I am not sure if I totally understand your scenario, but if I
do, I
	> think you should look at svnsync (which was added in V1.4):
	>
	> See:
	>
http://svn.collab.net/repos/svn/branches/1.4.x/notes/svnsync.txt
	>
	> or
	>
	>
http://journal.paul.querna.org/articles/2006/09/14/using-svnsync
	
	You might also be looking for this:
	
	   http://subversion.tigris.org/faq.html#website-auto-update
<http://subversion.tigris.org/faq.html#website-auto-update> 
	
	-Karl
	
	--
	Subversion support & consulting  <>
http://producingoss.com/consulting.html
	
	
--------------------------------------------------------------------- 
	To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
	For additional commands, e-mail:
users-help@subversion.tigris.org
<ma...@subversion.tigris.org> 
	
	


This suggestion might be more or less ridiculous, but it could work. ;)
Create a post-commit hook in your repository that builds a RSS-feed of
all commits (or just the ones which are of interest to you) and have a
process on your destination machine poll the RSS-feed every minute and
when there's a new item you perform your svn update.

/A

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: auto commit on server

Posted by Benedetto Bernardini <bb...@gmail.com>.
But repository and server are on two different machine.
thx!!!;)

2007/7/8, Karl Fogel <kf...@red-bean.com>:
>
> egoots <eg...@gmail.com> writes:
> > Benedetto Bernardini wrote:
> >> I have a linux machine with the repository of subversion, and a
> >> windows machine that is the test-server.
> >>
> >> I wanna, on commit in the repository, an auto-update on server.
> >> Is it possible?
> >>
> >
> > I am not sure if I totally understand your scenario, but if I do, I
> > think you should look at svnsync (which was added in V1.4):
> >
> > See:
> > http://svn.collab.net/repos/svn/branches/1.4.x/notes/svnsync.txt
> >
> > or
> >
> > http://journal.paul.querna.org/articles/2006/09/14/using-svnsync
>
> You might also be looking for this:
>
>    http://subversion.tigris.org/faq.html#website-auto-update
>
> -Karl
>
> --
> Subversion support & consulting  <>
> http://producingoss.com/consulting.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

Re: auto commit on server

Posted by Karl Fogel <kf...@red-bean.com>.
egoots <eg...@gmail.com> writes:
> Benedetto Bernardini wrote:
>> I have a linux machine with the repository of subversion, and a
>> windows machine that is the test-server.
>>
>> I wanna, on commit in the repository, an auto-update on server.
>> Is it possible?
>>
>
> I am not sure if I totally understand your scenario, but if I do, I
> think you should look at svnsync (which was added in V1.4):
>
> See:
> http://svn.collab.net/repos/svn/branches/1.4.x/notes/svnsync.txt
>
> or
>
> http://journal.paul.querna.org/articles/2006/09/14/using-svnsync

You might also be looking for this:

   http://subversion.tigris.org/faq.html#website-auto-update

-Karl

-- 
Subversion support & consulting  <>  http://producingoss.com/consulting.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: auto commit on server

Posted by egoots <eg...@gmail.com>.
Benedetto Bernardini wrote:
> 
> I have a linux machine with the repository of subversion, and a windows 
> machine that is the test-server.
> 
> I wanna, on commit in the repository, an auto-update on server.
> Is it possible?
> 

I am not sure if I totally understand your scenario, but if I do, I 
think you should look at svnsync (which was added in V1.4):

See:
http://svn.collab.net/repos/svn/branches/1.4.x/notes/svnsync.txt

or

http://journal.paul.querna.org/articles/2006/09/14/using-svnsync

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: auto commit on server

Posted by "Srilakshmanan, Lakshman" <la...@police.vic.gov.au>.
Hi Benedetto,
 
Subversion itself will not be able to update your test-server. 
Look at tools like CruiseControl to detect changes in Subversion server
and then to update your locally checked out project on the test-server
and then, if you want, start a build; Continuous Integration :)
 
Thanks
Lakshman

________________________________

From: Benedetto Bernardini [mailto:bb.bek69@gmail.com] 
Sent: Sunday, 8 July 2007 1:03 AM
To: users@subversion.tigris.org
Subject: auto commit on server


Hi,

I have a linux machine with the repository of subversion, and a windows
machine that is the test-server.

I wanna, on commit in the repository, an auto-update on server.
Is it possible?

thx!!!;)



=======================================================
The information contained in this email and any files attached may
be confidential information to the intended recipient and may be
the subject of legal professional privilege or public interest immunity.

If you are not the intended recipient, any use, disclosure or copying is
unauthorised.

If you have received this document in error please telephone 1300 307 082

*******************************************************************
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
*******************************************************************