~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-12 02:59:14 UTC
  • mfrom: (4593.3.3 403523-status-crash)
  • Revision ID: pqm@pqm.ubuntu.com-20090812025914-5k1krw3iyfjvow5u
(robertc) Fix selective status against historic revisions. (Martin
        Pool)

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()'