projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36b970d
)
Don't raise MultipleIDMatches if one of the matches is exact.
author
W. Trevor King
<wking@drexel.edu>
Thu, 21 Jan 2010 22:25:05 +0000
(17:25 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 21 Jan 2010 22:25:05 +0000
(17:25 -0500)
libbe/util/id.py
patch
|
blob
|
history
diff --git
a/libbe/util/id.py
b/libbe/util/id.py
index 3945b207e4f331e392f8945298c32e456b572325..4537c863af2d939f09817e598fd27a570340af35 100644
(file)
--- 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)