Show More
@@ -3,7 +3,14 b' mock bugzilla driver for testing templat' | |||||
3 | $ cat <<EOF > bzmock.py |
|
3 | $ cat <<EOF > bzmock.py | |
4 | > from __future__ import absolute_import |
|
4 | > from __future__ import absolute_import | |
5 | > from mercurial import extensions |
|
5 | > from mercurial import extensions | |
|
6 | > from mercurial import registrar | |||
6 | > |
|
7 | > | |
|
8 | > configtable = {} | |||
|
9 | > configitem = registrar.configitem(configtable) | |||
|
10 | > | |||
|
11 | > configitem('bugzilla', 'mocklog', | |||
|
12 | > default=None, | |||
|
13 | > ) | |||
7 | > def extsetup(ui): |
|
14 | > def extsetup(ui): | |
8 | > bugzilla = extensions.find('bugzilla') |
|
15 | > bugzilla = extensions.find('bugzilla') | |
9 | > class bzmock(bugzilla.bzaccess): |
|
16 | > class bzmock(bugzilla.bzaccess): |
General Comments 0
You need to be logged in to leave comments.
Login now