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

Re: [PATCH] exit codes for the action_* methods

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 5 Nov 2009 09:27:09 +0200 (Jerusalem Standard Time)

I redirected Michiel on IRC to the svnmerge mailing list.

Michiel van Baak wrote on Sat, 31 Oct 2009 at 23:26 +0100:
> This patch adds exit codes to the action_* methods.
> All the methods will return 0, except the svnmerge avail action when no
> candidates are found. It will then return 2
>
> This can be used when creating an automated merge (svn-automerge)
>
> We use this to allow developers to set a property on their
> developerbranch and a cronjob on the server will run svnmerge every hour
> on all the branches that have this property set.
> That way we keep the branches in sync with their source.
>
> To speed up the whole cronjob we needed a way to detect wether a branch
> needs an svnmerge. So we added exit codes and return 2 if the
> action_avail finds no revs to merge.
>
> Code based on a patch from Digium
> http://svnview.digium.com/svn/repotools/svnmerge?r1=5&r2=6
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2414626
Received on 2009-11-05 08:27:26 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.