~ubuntu-branches/ubuntu/lucid/bzr/lucid

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): John Francesco Ferlito
  • Date: 2009-12-16 21:43:42 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20091216214342-hm3wuhzt5rvb5bei
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
        # The push should have created target/a
320
320
        self.failUnlessExists('target/a')
321
321
 
 
322
    def test_push_use_existing_into_empty_bzrdir(self):
 
323
        """'bzr push --use-existing-dir' into a dir with an empty .bzr dir
 
324
        fails.
 
325
        """
 
326
        tree = self.create_simple_tree()
 
327
        self.build_tree(['target/', 'target/.bzr/'])
 
328
        self.run_bzr_error(
 
329
            ['Target directory ../target already contains a .bzr directory, '
 
330
             'but it is not valid.'],
 
331
            'push ../target --use-existing-dir', working_dir='tree')
 
332
 
322
333
    def test_push_onto_repo(self):
323
334
        """We should be able to 'bzr push' into an existing bzrdir."""
324
335
        tree = self.create_simple_tree()