monotone

monotone Mtn Source Tree

Root/contrib/ciabot_monotone_hookversion.lua

1-- Copyright (C) Nathaniel Smith <njs@pobox.com>
2-- Timothy Brownawell <tbrownaw@gmail.com>
3-- Thomas Moschny <thomas.moschny@gmx.de>
4-- Richard Levitte <richard@levitte.org>
5-- Licensed under the MIT license:
6-- http://www.opensource.org/licenses/mit-license.html
7-- I.e., do what you like, but keep copyright and there's NO WARRANTY.
8--
9-- CIA bot client for monotone, Lua part. This works in conjuction with
10-- ciabot_monotone_hookversion.py.
11
12do
13 -- Configure with the path to the corresponding python script
14 local exe = "/PATH/TO/ciabot_monotone_hookversion.py"
15
16 push_netsync_notifier({
17 revision_received =
18 function (rid, rdat, certs)
19 local branch, author, changelog
20 for i, cert in pairs(certs)
21 do
22 if (cert.name == "branch") then
23branch = cert.value
24 end
25 if (cert.name == "author") then
26author = cert.value
27 end
28 if (cert.name == "changelog") then
29changelog = cert.value
30 end
31 end
32 wait(spawn(exe, rid,
33 branch, author, changelog, rdat))
34 return "continue",nil
35 end
36 })
37end

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status