~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_merge_directive.py

  • Committer: Aaron Bentley
  • Date: 2007-06-19 14:49:06 UTC
  • mto: This revision was merged to the branch mainline in revision 2537.
  • Revision ID: abentley@panoramicfeedback.com-20070619144906-zx160g6h377j729h
Fix handling of null revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
                                  '.')
214
214
        call = connect_calls[0]
215
215
        self.assertEqual(('bogushost', 0), call[1:3])
 
216
 
 
217
    def test_no_common_ancestor(self):
 
218
        foo = self.make_branch_and_tree('foo')
 
219
        foo.commit('rev1')
 
220
        bar = self.make_branch_and_tree('bar')
 
221
        os.chdir('foo')
 
222
        self.run_bzr('merge-directive', '../bar')
 
223
 
 
224
    def test_no_commits(self):
 
225
        foo = self.make_branch_and_tree('foo')
 
226
        bar = self.make_branch_and_tree('bar')
 
227
        os.chdir('foo')
 
228
        self.run_bzr_error(('No revisions to bundle.', ),
 
229
                            'merge-directive', '../bar')