aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/util
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-02-20 13:21:25 -0500
committerW. Trevor King <wking@drexel.edu>2010-02-20 13:21:25 -0500
commitb356b3a7628b687a3de9f714102c4fd2a170348b (patch)
treec4f83f62677f269a6e6d09150a25ed374324f7b3 /libbe/util
parent4d1e4ad8aa2cb42648de90966cef904b555f9de9 (diff)
downloadbugseverywhere-b356b3a7628b687a3de9f714102c4fd2a170348b.tar.gz
Added `be html --min-id-length INT` option
Diffstat (limited to 'libbe/util')
-rw-r--r--libbe/util/id.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/util/id.py b/libbe/util/id.py
index 76079e7..9192ac8 100644
--- a/libbe/util/id.py
+++ b/libbe/util/id.py
@@ -232,6 +232,8 @@ def _truncate(uuid, other_uuids, min_length=3):
--------
_expand : inverse
"""
+ if min_length == -1:
+ return uuid
chars = min_length
for id in other_uuids:
if id == uuid: