blob: 284f730dea13db7d8307e09432af651df4e79a34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
"""Create a new bug"""
from libbe import bugdir, cmdutil, names
def execute(args):
if len(args) != 1:
raise cmdutil.UserError("Please supply a summary message")
dir = bugdir.tree_root(".")
bugs = (dir.list())
bug = dir.new_bug()
bug.creator = names.creator()
bug.severity = "minor"
bug.status = "open"
bug.summary = args[0]
|