##// END OF EJS Templates
notify: send changesets on 'outgoing' hook, updated doc
Ingo Bressler -
r14617:23f4e1e4 default
parent child Browse files
Show More
@@ -21,6 +21,8 this::
21 incoming.notify = python:hgext.notify.hook
21 incoming.notify = python:hgext.notify.hook
22 # batch emails when many changesets incoming at one time
22 # batch emails when many changesets incoming at one time
23 changegroup.notify = python:hgext.notify.hook
23 changegroup.notify = python:hgext.notify.hook
24 # batch emails when many changesets outgoing at one time (client side)
25 outgoing.notify = python:hgext.notify.hook
24
26
25 [notify]
27 [notify]
26 # config items go here
28 # config items go here
@@ -37,7 +39,8 Optional configuration items::
37 style = ... # style file to use when formatting email
39 style = ... # style file to use when formatting email
38 template = ... # template to use when formatting email
40 template = ... # template to use when formatting email
39 incoming = ... # template to use when run as incoming hook
41 incoming = ... # template to use when run as incoming hook
40 changegroup = ... # template when run as changegroup hook
42 outgoing = ... # template to use when run as outgoing hook
43 changegroup = ... # template to use when run as changegroup hook
41 maxdiff = 300 # max lines of diffs to include (0=none, -1=all)
44 maxdiff = 300 # max lines of diffs to include (0=none, -1=all)
42 maxsubject = 67 # truncate subject line longer than this
45 maxsubject = 67 # truncate subject line longer than this
43 diffstat = True # add a diffstat before the diff content
46 diffstat = True # add a diffstat before the diff content
@@ -290,7 +293,7 def hook(ui, repo, hooktype, node=None,
290 ui.pushbuffer()
293 ui.pushbuffer()
291 data = ''
294 data = ''
292 count = 0
295 count = 0
293 if hooktype == 'changegroup':
296 if hooktype == 'changegroup' or hooktype == 'outgoing':
294 start, end = ctx.rev(), len(repo)
297 start, end = ctx.rev(), len(repo)
295 for rev in xrange(start, end):
298 for rev in xrange(start, end):
296 if n.node(repo[rev]):
299 if n.node(repo[rev]):
@@ -32,6 +32,8
32 incoming.notify = python:hgext.notify.hook
32 incoming.notify = python:hgext.notify.hook
33 # batch emails when many changesets incoming at one time
33 # batch emails when many changesets incoming at one time
34 changegroup.notify = python:hgext.notify.hook
34 changegroup.notify = python:hgext.notify.hook
35 # batch emails when many changesets outgoing at one time (client side)
36 outgoing.notify = python:hgext.notify.hook
35
37
36 [notify]
38 [notify]
37 # config items go here
39 # config items go here
@@ -48,7 +50,8
48 style = ... # style file to use when formatting email
50 style = ... # style file to use when formatting email
49 template = ... # template to use when formatting email
51 template = ... # template to use when formatting email
50 incoming = ... # template to use when run as incoming hook
52 incoming = ... # template to use when run as incoming hook
51 changegroup = ... # template when run as changegroup hook
53 outgoing = ... # template to use when run as outgoing hook
54 changegroup = ... # template to use when run as changegroup hook
52 maxdiff = 300 # max lines of diffs to include (0=none, -1=all)
55 maxdiff = 300 # max lines of diffs to include (0=none, -1=all)
53 maxsubject = 67 # truncate subject line longer than this
56 maxsubject = 67 # truncate subject line longer than this
54 diffstat = True # add a diffstat before the diff content
57 diffstat = True # add a diffstat before the diff content
General Comments 0
You need to be logged in to leave comments. Login now