From: Aaron Bentley Date: Tue, 17 May 2005 14:36:31 +0000 (+0000) Subject: Forced be to show minimum 3 digits, because 3 is common. X-Git-Tag: 1.0.0~291 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=336a51ada68f4d30684bed29df155ec73fbd7375;p=be.git Forced be to show minimum 3 digits, because 3 is common. --- diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py index 8268a1d..24eab64 100644 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@ -27,6 +27,8 @@ def unique_name(bug, bugs): continue while (bug.uuid[:chars] == some_bug.uuid[:chars]): chars+=1 + if chars < 3: + chars = 3 return bug.uuid[:chars] class UserError(Exception):