From: Tim Guirgies Date: Tue, 24 May 2011 16:15:12 +0000 (+1000) Subject: Teach be status --help to load per tree config X-Git-Tag: 1.1.0~184 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9fd2e8ffbcf2b0ffb4b39e03609197cb95a7c6cd;p=be.git 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. --- 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 :