aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-05-17 14:36:31 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-05-17 14:36:31 +0000
commit336a51ada68f4d30684bed29df155ec73fbd7375 (patch)
tree09fc8a0e33e71c004bad935e85f2e1b77c56ad49
parent633cb7e0f854c4479376a9a1200e9af499d27b1d (diff)
downloadbugseverywhere-336a51ada68f4d30684bed29df155ec73fbd7375.tar.gz
Forced be to show minimum 3 digits, because 3 is common.
-rw-r--r--libbe/cmdutil.py2
1 files changed, 2 insertions, 0 deletions
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):