aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/util/id.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-21 17:25:05 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-21 17:25:05 -0500
commit8b143aa8280181ebdd7b48ac72cda685329f3002 (patch)
treeb4afd74823ec6c578d086070b42b36fa4483be41 /libbe/util/id.py
parent36b970de8e5a4b2e1b91372742ce86819c4254b5 (diff)
downloadbugseverywhere-8b143aa8280181ebdd7b48ac72cda685329f3002.tar.gz
Don't raise MultipleIDMatches if one of the matches is exact.
Diffstat (limited to 'libbe/util/id.py')
-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 3945b20..4537c86 100644
--- a/libbe/util/id.py
+++ b/libbe/util/id.py
@@ -140,6 +140,8 @@ def _expand(truncated_id, common, other_ids):
other_ids = list(other_ids)
for id in other_ids:
if id.startswith(truncated_id):
+ if id == truncated_id:
+ return id
matches.append(id)
if len(matches) > 1:
raise MultipleIDMatches(truncated_id, common, matches)