From 9fd2e8ffbcf2b0ffb4b39e03609197cb95a7c6cd Mon Sep 17 00:00:00 2001 From: Tim Guirgies Date: Wed, 25 May 2011 02:15:12 +1000 Subject: 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. --- libbe/command/status.py | 4 ++++ 1 file changed, 4 insertions(+) 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 : -- cgit