/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 breezy/tests/per_controldir/test_push.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-18 23:14:00 UTC
  • mfrom: (7490.40.62 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200718231400-jaes9qltn8oi8xss
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from ...errors import (
20
20
    LossyPushToSameVCS,
21
21
    TagsNotSupported,
 
22
    NoSuchRevision,
22
23
    )
23
24
from ...revision import NULL_REVISION
24
25
from .. import TestNotApplicable
46
47
        self.assertEqual(dir.open_branch().base,
47
48
                         tree.branch.get_push_location())
48
49
 
 
50
    def test_push_no_such_revision(self):
 
51
        tree, rev_1 = self.create_simple_tree()
 
52
        dir = self.make_repository('dir').controldir
 
53
        self.assertRaises(
 
54
            NoSuchRevision, dir.push_branch,
 
55
            tree.branch, revision_id=b'idonotexist')
 
56
 
49
57
    def test_push_new_branch_fetch_tags(self):
50
58
        builder = self.make_branch_builder('from')
51
59
        builder.start_series()