~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_foreign.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-17 03:20:35 UTC
  • mfrom: (4792.4.3 456036)
  • Revision ID: pqm@pqm.ubuntu.com-20091117032035-s3sgtlixj1lrminn
(Gordon Tyler) Fix IndexError during 'bzr ignore /' (#456036)

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    def is_compatible(source, target):
104
104
        return isinstance(target, DummyForeignVcsBranch)
105
105
 
106
 
    def push(self, overwrite=False, stop_revision=None):
107
 
        raise errors.NoRoundtrippingSupport(self.source, self.target)
108
 
 
109
106
    def lossy_push(self, stop_revision=None):
110
107
        result = branch.BranchPushResult()
111
108
        result.source_branch = self.source
354
351
        self.assertNotEquals("A Dummy VCS Dir",
355
352
                             newdir._format.get_format_string())
356
353
 
357
 
    def test_push_not_supported(self):
358
 
        source_tree = self.make_branch_and_tree("source")
359
 
        target_tree = self.make_branch_and_tree("target", 
360
 
            format=DummyForeignVcsDirFormat())
361
 
        self.assertRaises(errors.NoRoundtrippingSupport, 
362
 
            source_tree.branch.push, target_tree.branch)
363
 
 
364
354
    def test_lossy_push_empty(self):
365
355
        source_tree = self.make_branch_and_tree("source")
366
356
        target_tree = self.make_branch_and_tree("target",