projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
722cc27
)
Add support for 'none' and '-' with --assigned like in `be assign`
author
Andrew Cooper
<andrew.cooper@hkcreations.org>
Tue, 29 Mar 2011 18:52:52 +0000
(13:52 -0500)
committer
Andrew Cooper
<andrew.cooper@hkcreations.org>
Tue, 29 Mar 2011 18:52:52 +0000
(13:52 -0500)
libbe/command/new.py
patch
|
blob
|
history
diff --git
a/libbe/command/new.py
b/libbe/command/new.py
index 7a5c51d9f6b0de08097d0bcad56a6094f7a41d64..849eafb9502231a8749f53dfc1f9dd63ed56cf80 100644
(file)
--- a/
libbe/command/new.py
+++ b/
libbe/command/new.py
@@
-109,7
+109,12
@@
class New (libbe.command.Command):
else:
bug.reporter = bug.creator
if params['assigned'] != None:
- bug.assigned = params['assigned']
+ assigned = params['assigned']
+ if assigned == 'none':
+ assigned = None
+ elif assigned == '-':
+ assigned = self._get_user_id()
+ bug.assigned = assigned
if params['status'] != None:
bug.status = params['status']
if params['severity'] != None: