~jeanfrancois.roy/bzr/url-safe-escape

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_bound_branches.py

[merge] robertc's integration, updated tests to check for retcode=3

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 
104
104
        os.chdir('../child')
105
105
        open('b', 'wb').write('new b child contents\n')
106
 
        bzr('commit', '-m', 'child', retcode=1)
 
106
        bzr('commit', '-m', 'child', retcode=3)
107
107
 
108
108
        bzr('update')
109
109
        self.check_revno(2)
123
123
        # Double binding succeeds, but committing to child2 should fail
124
124
        bzr('bind', '../child')
125
125
 
126
 
        bzr('commit', '-m', 'child2', '--unchanged', retcode=1)
 
126
        bzr('commit', '-m', 'child2', '--unchanged', retcode=3)
127
127
 
128
128
    def test_unbinding(self):
129
129
        bzr = self.run_bzr
137
137
        os.chdir('../child')
138
138
        open('b', 'wb').write('new b child contents\n')
139
139
        self.check_revno(1)
140
 
        bzr('commit', '-m', 'child', retcode=1)
 
140
        bzr('commit', '-m', 'child', retcode=3)
141
141
        self.check_revno(1)
142
142
        bzr('unbind')
143
143
        bzr('commit', '-m', 'child')
144
144
        self.check_revno(2)
145
145
 
146
 
        bzr('bind', retcode=1)
 
146
        bzr('bind', retcode=3)
147
147
 
148
148
    def test_commit_remote_bound(self):
149
149
        # It is not possible to commit to a branch
159
159
        bzr('bind', '../newbase')
160
160
 
161
161
        os.chdir('../child')
162
 
        bzr('commit', '-m', 'failure', '--unchanged', retcode=1)
 
162
        bzr('commit', '-m', 'failure', '--unchanged', retcode=3)
163
163
        
164
164
 
165
165
    def test_pull_updates_both(self):
197
197
 
198
198
        os.chdir('../child')
199
199
        # These branches have diverged
200
 
        bzr('bind', '../base', retcode=1)
 
200
        bzr('bind', '../base', retcode=3)
201
201
 
202
202
        # TODO: In the future, this might require actual changes
203
203
        # to have occurred, rather than just a new revision entry