/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/blackbox/test_sign_my_commits.py

  • Committer: Jelmer Vernooij
  • Date: 2018-04-02 00:52:27 UTC
  • mfrom: (6939 work)
  • mto: This revision was merged to the branch mainline in revision 7274.
  • Revision ID: jelmer@jelmer.uk-20180402005227-pecflp1mvdjrjqd6
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
    def setup_tree(self, location='.'):
39
39
        wt = self.make_branch_and_tree(location)
40
 
        wt.commit("base A", allow_pointless=True, rev_id='A')
41
 
        wt.commit("base B", allow_pointless=True, rev_id='B')
42
 
        wt.commit("base C", allow_pointless=True, rev_id='C')
43
 
        wt.commit("base D", allow_pointless=True, rev_id='D',
 
40
        wt.commit("base A", allow_pointless=True, rev_id=b'A')
 
41
        wt.commit("base B", allow_pointless=True, rev_id=b'B')
 
42
        wt.commit("base C", allow_pointless=True, rev_id=b'C')
 
43
        wt.commit("base D", allow_pointless=True, rev_id=b'D',
44
44
                committer='Alternate <alt@foo.com>')
45
45
        wt.add_parent_tree_id("aghost")
46
 
        wt.commit("base E", allow_pointless=True, rev_id='E')
 
46
        wt.commit("base E", allow_pointless=True, rev_id=b'E')
47
47
        return wt
48
48
 
49
49
    def assertUnsigned(self, repo, revision_id):
131
131
    def test_sign_single_commit(self):
132
132
        self.setup_smart_server_with_call_log()
133
133
        t = self.make_branch_and_tree('branch')
134
 
        self.build_tree_contents([('branch/foo', 'thecontents')])
 
134
        self.build_tree_contents([('branch/foo', b'thecontents')])
135
135
        t.add("foo")
136
136
        t.commit("message")
137
137
        self.reset_smart_call_log()