/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: Aaron Bentley
  • Date: 2007-02-07 03:09:58 UTC
  • mfrom: (2268 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2269.
  • Revision ID: aaron.bentley@utoronto.ca-20070207030958-fx6ykp7rg7zma6xu
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
 
142
142
    def check_basis(self, check_clean, require_commits=True):
143
143
        if self.this_basis is None and require_commits is True:
144
 
            raise BzrCommandError("This branch has no commits")
 
144
            raise BzrCommandError("This branch has no commits."
 
145
                                  " (perhaps you would prefer 'bzr pull')")
145
146
        if check_clean:
146
147
            self.compare_basis()
147
148
            if self.this_basis != self.this_rev_id:
572
573
            parent_id = self.tt.final_parent(trans_id)
573
574
            if file_id in self.this_tree.inventory:
574
575
                self.tt.unversion_file(trans_id)
575
 
                self.tt.delete_contents(trans_id)
 
576
                if file_id in self.this_tree:
 
577
                    self.tt.delete_contents(trans_id)
576
578
            file_group = self._dump_conflicts(name, parent_id, file_id, 
577
579
                                              set_version=True)
578
580
            self._raw_conflicts.append(('contents conflict', file_group))