Commit 8837ccef authored by Jeremy Hylton's avatar Jeremy Hylton

refs isn't necessarily a list of tuples.

There are some cases, can't recall exactly what they are, where a
single ref is returned instead of a ref, class info tuple.
parent 4115e55c
......@@ -76,8 +76,14 @@ def main(path):
# storage, but that seems like overkill.
refs = get_refs(data)
missing = [] # contains 3-tuples of oid, klass-metadata, reason
for ref, klass in refs:
missing = [] # contains 3-tuples of oid, klass-metadata, reason
for info in refs:
try:
ref, klass = info
except TypeError:
# failed to unpack
ref = info
klass = '<unknown>'
if not fs._index.has_key(ref):
missing.append((ref, klass, "missing"))
if noload.has_key(ref):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment