diff options
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/bug.py | 8 | ||||
-rw-r--r-- | libbe/bugdir.py | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/libbe/bug.py b/libbe/bug.py index a14f7fd..4cb53c2 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -216,14 +216,6 @@ class Bug(object): comments.sort(cmp_time) return comments -def new_bug(dir, uuid=None): - bug = dir.new_bug(uuid) - bug.creator = bug.rcs.get_user_id() - bug.severity = "minor" - bug.status = "open" - bug.time = time.time() - return bug - def new_comment(bug, body=None): comm = bug.new_comment() comm.From = comm.rcs.get_user_id() diff --git a/libbe/bugdir.py b/libbe/bugdir.py index cf8cba5..41f0fec 100644 --- a/libbe/bugdir.py +++ b/libbe/bugdir.py @@ -195,6 +195,10 @@ class BugDir: self.rcs.mkdir(path) bug = Bug(self.bugs_path, None, self.rcs, self) bug.uuid = uuid + bug.creator = self.rcs.get_user_id() + bug.severity = "minor" + bug.status = "open" + bug.time = time.time() return bug class InvalidValue(ValueError): |