~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Robert Collins
  • Date: 2009-05-11 01:59:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4593.
  • Revision ID: robertc@robertcollins.net-20090511015906-6zi6a9b8tuuhipc8
Less lock thrashing in check.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
            return spectype(spec, _internal=True)
162
162
        else:
163
163
            for spectype in SPEC_TYPES:
 
164
                trace.mutter('Returning RevisionSpec %s for %s',
 
165
                             spectype.__name__, spec)
164
166
                if spec.startswith(spectype.prefix):
165
 
                    trace.mutter('Returning RevisionSpec %s for %s',
166
 
                                 spectype.__name__, spec)
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
185
185
            called directly. Only from RevisionSpec.from_string()
186
186
        """
187
187
        if not _internal:
 
188
            # XXX: Update this after 0.10 is released
188
189
            symbol_versioning.warn('Creating a RevisionSpec directly has'
189
190
                                   ' been deprecated in version 0.11. Use'
190
191
                                   ' RevisionSpec.from_string()'