/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

Martin's review feedback.

* bzrlib/revisionspec.py:
(RevisionSpec.__new__): Deleted. It has been deprecated last
century (0.11).

* bzrlib/osutils.py: 
Use _mod prefixe when importing symbols.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
    prefix = None
138
138
    wants_revision_history = True
139
139
 
140
 
    def __new__(cls, spec, _internal=False):
141
 
        if _internal:
142
 
            return object.__new__(cls)
143
 
 
144
 
        symbol_versioning.warn('Creating a RevisionSpec directly has'
145
 
                               ' been deprecated in version 0.11. Use'
146
 
                               ' RevisionSpec.from_string()'
147
 
                               ' instead.',
148
 
                               DeprecationWarning, stacklevel=2)
149
 
        return RevisionSpec.from_string(spec)
150
 
 
151
140
    @staticmethod
152
141
    def from_string(spec):
153
142
        """Parse a revision spec string into a RevisionSpec object.