aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-04-22 15:50:08 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-04-22 15:50:08 +0000
commit43951f500ed2ce6dae61f34cc499d13535f47c50 (patch)
tree68f52366fbee191ccff4802e7474fc40605ff3d4 /becommands
parent16a391aaf9d3934f7297b7a8fb87184cf555882f (diff)
parent4c567ef59a85ce345ce76268aafc4a5ff9c66e62 (diff)
downloadbugseverywhere-43951f500ed2ce6dae61f34cc499d13535f47c50.tar.gz
Added new status - "in-progress" (Oleg Romanyshyn)
Patches applied: * oromanyshyn@panoramicfeedback.com--development2/bugs-everywhere--0--base-0 * tag of aaron.bentley@utoronto.ca--be/bugs-everywhere--devel--0--patch-84 * oromanyshyn@panoramicfeedback.com--development2/bugs-everywhere--0--patch-1 * Added new status - "in-progress"
Diffstat (limited to 'becommands')
-rw-r--r--becommands/inprogress.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/becommands/inprogress.py b/becommands/inprogress.py
new file mode 100644
index 0000000..968551e
--- /dev/null
+++ b/becommands/inprogress.py
@@ -0,0 +1,19 @@
+"""Close a bug"""
+from libbe import cmdutil
+def execute(args):
+ """
+ >>> from libbe import tests
+ >>> import os
+ >>> dir = tests.simple_bug_dir()
+ >>> os.chdir(dir.dir)
+ >>> dir.get_bug("a").status
+ 'open'
+ >>> execute(("a",))
+ >>> dir.get_bug("a").status
+ 'in-progress'
+ >>> tests.clean_up()
+ """
+ assert(len(args) == 1)
+ bug = cmdutil.get_bug(args[0])
+ bug.status = "in-progress"
+ bug.save()