aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Guirgies <lt.infiltrator@gmail.com>2011-05-25 02:15:12 +1000
committerW. Trevor King <wking@drexel.edu>2011-05-25 06:24:28 -0400
commit9fd2e8ffbcf2b0ffb4b39e03609197cb95a7c6cd (patch)
treed9a4e97c7add943f32623a10ed93bcfde19f0814
parent287f32bc7f034045454bff1b246aba769eda9e9a (diff)
downloadbugseverywhere-9fd2e8ffbcf2b0ffb4b39e03609197cb95a7c6cd.tar.gz
Teach be status --help to load per tree config
Again, there is discrepancy between severity.py and status.py. I thought this feature was extremely useful in severity.py and it should be put into status.py too.
-rw-r--r--libbe/command/status.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbe/command/status.py b/libbe/command/status.py
index 2e470e4..e034bef 100644
--- a/libbe/command/status.py
+++ b/libbe/command/status.py
@@ -80,6 +80,10 @@ class Status (libbe.command.Command):
return 0
def _long_help(self):
+ try: # See if there are any per-tree status configurations
+ bd = self._get_bugdir()
+ except NotImplementedError:
+ pass # No tree, just show the defaults
longest_status_len = max([len(s) for s in libbe.bug.status_values])
active_statuses = []
for status in libbe.bug.active_status_values :