~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Merge in knit repository use of knits - still not a stable format, but can be experimented with.

Show diffs side-by-side

added added

removed removed

Lines of Context:
966
966
        """See Branch.set_revision_history."""
967
967
        self.control_files.put_utf8(
968
968
            'revision-history', '\n'.join(rev_history))
 
969
        transaction = self.get_transaction()
 
970
        history = transaction.map.find_revision_history()
 
971
        if history is not None:
 
972
            # update the revision history in the identity map.
 
973
            history[:] = list(rev_history)
 
974
            # this call is disabled because revision_history is 
 
975
            # not really an object yet, and the transaction is for objects.
 
976
            # transaction.register_dirty(history)
 
977
        else:
 
978
            transaction.map.add_revision_history(rev_history)
 
979
            # this call is disabled because revision_history is 
 
980
            # not really an object yet, and the transaction is for objects.
 
981
            # transaction.register_clean(history)
969
982
 
970
983
    def get_revision_delta(self, revno):
971
984
        """Return the delta for one revision.
990
1003
    @needs_read_lock
991
1004
    def revision_history(self):
992
1005
        """See Branch.revision_history."""
993
 
        # FIXME are transactions bound to control files ? RBC 20051121
994
1006
        transaction = self.get_transaction()
995
1007
        history = transaction.map.find_revision_history()
996
1008
        if history is not None: