You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Michiel van Baak <mi...@vanbaak.info> on 2009/10/31 22:26:29 UTC

[PATCH] exit codes for the action_* methods

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

-- 

Michiel van Baak
michiel@vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer aficionados are both called users?"


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

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
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