161
161
return spectype(spec, _internal=True)
163
163
for spectype in SPEC_TYPES:
164
166
if spec.startswith(spectype.prefix):
167
167
return spectype(spec, _internal=True)
168
168
# RevisionSpec_revno is special cased, because it is the only
169
169
# one that directly handles plain integers