From 55aa926e497824e54c7521c2f0c45ce393ea26b8 Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Tue, 10 Aug 2010 14:04:41 -0400 Subject: [PATCH] Fix "no attribute '_get_bugdir'" bug in `be help severity`. Bug and patch submitted by Marien Zwart. I can't think of any side effect issues this might raise, so I'm committing it ;). Excerpts from Marien's email below. From: Marien Zwart <...> Date: Tue, 10 Aug 2010 17:45:06 +0200 Subject: [Be-devel] "be help severity" fails (traceback) ... In current git (d63ec5fd3eca61ea53d06a96bfb52170111fc25d) "be help severity" produces the following: Traceback (most recent call last): ... AttributeError: 'Severity' object has no attribute '_get_bugdir' ... but I am not sure if this has any unintended side effects, so I'd prefer not to submit this as a merge request (for someone more familiar with the code to fix this instead). ... --- libbe/command/help.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libbe/command/help.py b/libbe/command/help.py index b2b4cbd..01824fa 100644 --- a/libbe/command/help.py +++ b/libbe/command/help.py @@ -64,6 +64,7 @@ class Help (libbe.command.Command): module = libbe.command.get_command(params['topic']) Class = libbe.command.get_command_class(module,params['topic']) c = Class(ui=self.ui) + self.ui.setup_command(c) print >> self.stdout, c.help().rstrip('\n') elif params['topic'] in TOPICS: print >> self.stdout, TOPICS[params['topic']].rstrip('\n') -- 2.26.2