/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/merge.py

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
        self.this_tree.add_parent_tree((self.other_rev_id, self.other_tree))
188
188
 
189
189
    def set_other(self, other_revision):
190
 
        other_branch, self.other_tree = _get_tree(other_revision, 
 
190
        """Set the revision and tree to merge from.
 
191
 
 
192
        This sets the other_tree, other_rev_id, other_basis attributes.
 
193
 
 
194
        :param other_revision: The [path, revision] list to merge from.
 
195
        """
 
196
        other_branch, self.other_tree = _get_tree(other_revision,
191
197
                                                  self.this_branch)
192
198
        if other_revision[1] == -1:
193
199
            self.other_rev_id = other_branch.last_revision()
209
215
        self.set_base([None, None])
210
216
 
211
217
    def set_base(self, base_revision):
 
218
        """Set the base revision to use for the merge.
 
219
 
 
220
        :param base_revision: A 2-list containing a path and revision number.
 
221
        """
212
222
        mutter("doing merge() with no base_revision specified")
213
223
        if base_revision == [None, None]:
214
224
            try:
942
952
        assert not interesting_ids, ('Only supply interesting_ids'
943
953
                                     ' or interesting_files')
944
954
        merger._set_interesting_files(interesting_files)
945
 
    merger.show_base = show_base 
 
955
    merger.show_base = show_base
946
956
    merger.reprocess = reprocess
947
957
    merger.other_rev_id = other_rev_id
948
958
    merger.other_basis = other_rev_id