|
0
|
1 |
#!/usr/bin/env python
|
|
|
2 |
|
|
|
3 |
from mercurial import hg
|
|
|
4 |
from mercurial.i18n import _
|
|
|
5 |
|
|
|
6 |
def issues(ui, repo, **opts):
|
|
|
7 |
"""Keep track of issues associated with the project"""
|
|
|
8 |
if opts['list']:
|
|
|
9 |
print "listing issues"
|
|
|
10 |
elif opts['add']:
|
|
|
11 |
print "adding issue"
|
|
|
12 |
elif opts['show']:
|
|
|
13 |
print "showing issue"
|
|
|
14 |
elif opts['reply']:
|
|
|
15 |
print "replying to issue"
|
|
|
16 |
|
|
|
17 |
cmdtable = {
|
|
|
18 |
'issues': (issues,
|
|
|
19 |
[('l', 'list', None, 'list issues'),
|
|
|
20 |
('a', 'add', None, 'add issue'),
|
|
|
21 |
('s', 'show', None, 'show issue'),
|
|
|
22 |
('r', 'reply', None, 'reply to issue')],
|
|
|
23 |
_('hg issues [OPTIONS]'))
|
|
|
24 |
}
|