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

[PATCH] exit codes for the action_* methods

From: Michiel van Baak <michiel_at_vanbaak.info>
Date: Sat, 31 Oct 2009 23:26:29 +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

-- 
Michiel van Baak
michiel_at_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?"

  • application/pgp-signature attachment: stored
Received on 2009-11-01 16:15:35 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.