/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

  • Committer: Martin Pool
  • Date: 2006-06-10 23:16:19 UTC
  • mfrom: (1759 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1761.
  • Revision ID: mbp@sourcefrog.net-20060610231619-05b997deeb005d02
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
        trees = (self.this_basis_tree, self.other_tree)
138
138
        return [get_id(tree, file_id) for tree in trees]
139
139
 
140
 
    def check_basis(self, check_clean):
141
 
        if self.this_basis is None:
 
140
    def check_basis(self, check_clean, require_commits=True):
 
141
        if self.this_basis is None and require_commits is True:
142
142
            raise BzrCommandError("This branch has no commits")
143
143
        if check_clean:
144
144
            self.compare_basis()
205
205
        if other_branch.base != self.this_branch.base:
206
206
            self.this_branch.fetch(other_branch, last_revision=self.other_basis)
207
207
 
 
208
    def find_base(self):
 
209
        self.set_base([None, None])
 
210
 
208
211
    def set_base(self, base_revision):
209
212
        mutter("doing merge() with no base_revision specified")
210
213
        if base_revision == [None, None]: