Forced be to show minimum 3 digits, because 3 is common.
authorAaron Bentley <abentley@panoramicfeedback.com>
Tue, 17 May 2005 14:36:31 +0000 (14:36 +0000)
committerAaron Bentley <abentley@panoramicfeedback.com>
Tue, 17 May 2005 14:36:31 +0000 (14:36 +0000)
libbe/cmdutil.py

index 8268a1d16c2cd3bd665cd5bb0ff48f676dc1253e..24eab64dcf7e152a77dec499b7eeddaf82edf0fc 100644 (file)
@@ -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):