Indefero

Indefero Commit Details


Date:2010-10-30 17:09:55 (14 years 1 month ago)
Author:Thomas Keller
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:039ae01cfaadf6a70df3e5d013523e3f89ba4f76
Parents: 612d00ade2d4da8a1f1e01319b48d64e7d6f6b48
Message:Use an even smarter way of including additional resources for monotone by using a wildcard dir matcher and document this accordingly.

Changes:

File differences

doc/syncmonotone.mdtext
199199
200200
201201
202
203
204
205
202
203
204
205
with [many example scripts and hooks](http://code.monotone.ca/p/monotone/source/tree/h:net.venge.monotone/contrib)
which serve these purposes, after only little additional configuration.
The usher/indefero-controlled setup automatically looks for a file called
`hooks.lua` in the project's base directory (configured via $cfg['mtn_repositories'])
and this is the ideal place to put or link these additional lua sources.
The usher/indefero-controlled setup automatically looks for *.lua files
in a directory called `hooks.d` right under the project's base directory
(configured via $cfg['mtn_repositories']) and this is the ideal place to
put or link these additional lua sources.
src/IDF/Plugin/SyncMonotone/monotonerc-auth.tpl
6565
6666
6767
68
68
6969
70
70
71
72
73
74
75
76
77
78
79
})
--
-- Load additional local hooks, in case they exist
-- Load local hooks if they exist.
--
include(get_confdir() .. "/hooks.lua")
-- The way this is supposed to work is that hooks.d can contain symbolic
-- links to lua scripts. These links MUST have the extension .lua
-- If the script needs some configuration, a corresponding file with
-- the extension .conf is the right spot.
--
-- First load the configuration of the hooks, if applicable
includedirpattern(get_confdir() .. "/hooks.d/", "*.conf")
-- Then load the hooks themselves
includedirpattern(get_confdir() .. "/hooks.d/", "*.lua")
src/IDF/Plugin/SyncMonotone/monotonerc-noauth.tpl
7979
8080
8181
82
82
8383
84
84
85
86
87
88
89
90
91
92
})
--
-- Load additional local hooks, in case they exist
-- Load local hooks if they exist.
--
include(get_confdir() .. "/hooks.lua")
-- The way this is supposed to work is that hooks.d can contain symbolic
-- links to lua scripts. These links MUST have the extension .lua
-- If the script needs some configuration, a corresponding file with
-- the extension .conf is the right spot.
--
-- First load the configuration of the hooks, if applicable
includedirpattern(get_confdir() .. "/hooks.d/", "*.conf")
-- Then load the hooks themselves
includedirpattern(get_confdir() .. "/hooks.d/", "*.lua")

Archive Download the corresponding diff file

Page rendered in 0.07940s using 13 queries.