/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 breezy/bzr/fullhistory.py

Merge test-run support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
    def set_last_revision_info(self, revno, revision_id):
42
42
        if not revision_id or not isinstance(revision_id, bytes):
43
 
            raise errors.InvalidRevisionId(
44
 
                revision_id=revision_id, branch=self)
 
43
            raise errors.InvalidRevisionId(revision_id=revision_id, branch=self)
45
44
        revision_id = _mod_revision.ensure_null(revision_id)
46
45
        with self.lock_write():
47
46
            # this old format stores the full history, but this api doesn't
115
114
        destination._set_revision_history(new_history)
116
115
 
117
116
    def generate_revision_history(self, revision_id, last_rev=None,
118
 
                                  other_branch=None):
 
117
        other_branch=None):
119
118
        """Create a new revision history that will finish with revision_id.
120
119
 
121
120
        :param revision_id: the new tip to use.
126
125
        """
127
126
        with self.lock_write():
128
127
            self._set_revision_history(self._lefthand_history(revision_id,
129
 
                                                              last_rev, other_branch))
 
128
                last_rev, other_branch))
130
129
 
131
130
 
132
131
class BzrBranch5(FullHistoryBzrBranch):
174
173
    def supports_tags(self):
175
174
        return False
176
175
 
177
 
    supports_reference_locations = False
 
176
 
 
177