~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Andrew Bennetts
  • Date: 2007-04-19 04:29:20 UTC
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20070419042920-fwr334s98mbcxh5e
Use 'null:' instead of '' to mean NULL_REVISION on the wire.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
 
207
207
    def test_empty_branch(self):
208
208
        # in an empty branch we decode the response properly
209
 
        client = FakeClient([(('ok', '0', ''), )])
 
209
        client = FakeClient([(('ok', '0', 'null:'), )])
210
210
        transport = MemoryTransport()
211
211
        transport.mkdir('quack')
212
212
        transport = transport.clone('quack')
264
264
        result = branch.set_revision_history([])
265
265
        self.assertEqual(
266
266
            [('call', 'Branch.set_last_revision',
267
 
                ('///branch/', 'branch token', 'repo token', ''))],
 
267
                ('///branch/', 'branch token', 'repo token', 'null:'))],
268
268
            client._calls)
269
269
        branch.unlock()
270
270
        self.assertEqual(None, result)