~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2012-06-28 16:17:34 UTC
  • mfrom: (6531 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6533.
  • Revision ID: jelmer@samba.org-20120628161734-2iqmgnxx6ogt9o6h
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
981
981
            raise AssertionError('_iter_for_revno returned too much history')
982
982
        return (True, partial_history[-1])
983
983
 
984
 
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((2, 4, 0)))
985
 
    def iter_reverse_revision_history(self, revision_id):
986
 
        """Iterate backwards through revision ids in the lefthand history
987
 
 
988
 
        :param revision_id: The revision id to start with.  All its lefthand
989
 
            ancestors will be traversed.
990
 
        """
991
 
        graph = self.get_graph()
992
 
        stop_revisions = (None, _mod_revision.NULL_REVISION)
993
 
        return graph.iter_lefthand_ancestry(revision_id, stop_revisions)
994
 
 
995
984
    def is_shared(self):
996
985
        """Return True if this repository is flagged as a shared repository."""
997
986
        raise NotImplementedError(self.is_shared)
1398
1387
    def __ne__(self, other):
1399
1388
        return not self == other
1400
1389
 
1401
 
    @classmethod
1402
 
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((2, 4, 0)))
1403
 
    def register_format(klass, format):
1404
 
        format_registry.register(format)
1405
 
 
1406
 
    @classmethod
1407
 
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((2, 4, 0)))
1408
 
    def unregister_format(klass, format):
1409
 
        format_registry.remove(format)
1410
 
 
1411
 
    @classmethod
1412
 
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((2, 4, 0)))
1413
 
    def get_default_format(klass):
1414
 
        """Return the current default format."""
1415
 
        return format_registry.get_default()
1416
 
 
1417
1390
    def get_format_description(self):
1418
1391
        """Return the short description for this format."""
1419
1392
        raise NotImplementedError(self.get_format_description)