~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
lazy_import(globals(), """
22
22
import bisect
23
23
import datetime
 
24
 
 
25
from bzrlib import (
 
26
    workingtree,
 
27
    )
24
28
""")
25
29
 
26
30
from bzrlib import (
168
172
                         spectype.__name__, spec)
169
173
            return spectype(spec, _internal=True)
170
174
        else:
171
 
            for spectype in SPEC_TYPES:
172
 
                if spec.startswith(spectype.prefix):
173
 
                    trace.mutter('Returning RevisionSpec %s for %s',
174
 
                                 spectype.__name__, spec)
175
 
                    return spectype(spec, _internal=True)
176
175
            # Otherwise treat it as a DWIM, build the RevisionSpec object and
177
176
            # wait for _match_on to be called.
178
177
            return RevisionSpec_dwim(spec, _internal=True)
994
993
_register_revspec(RevisionSpec_submit)
995
994
_register_revspec(RevisionSpec_annotate)
996
995
_register_revspec(RevisionSpec_mainline)
997
 
 
998
 
# classes in this list should have a "prefix" attribute, against which
999
 
# string specs are matched
1000
 
SPEC_TYPES = symbol_versioning.deprecated_list(
1001
 
    symbol_versioning.deprecated_in((1, 12, 0)), "SPEC_TYPES", [])