/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 bzrlib/tests/blackbox/test_serve.py

  • Committer: Aaron Bentley
  • Date: 2007-07-11 19:44:51 UTC
  • mto: This revision was merged to the branch mainline in revision 2606.
  • Revision ID: abentley@panoramicfeedback.com-20070711194451-3jqhye1nnd02a9uv
Restore original Branch.last_revision behavior, fix bits that care

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        # We get a working branch
109
109
        branch = BzrDir.open_from_transport(transport).open_branch()
110
110
        branch.repository.get_revision_graph()
111
 
        self.assertEqual(_mod_revision.NULL_REVISION, branch.last_revision())
 
111
        self.assertEqual(_mod_revision.NULL_REVISION,
 
112
                         _mod_revision.ensure_null(branch.last_revision()))
112
113
        self.assertInetServerShutsdownCleanly(process)
113
114
 
114
115
    def test_bzr_serve_port_readonly(self):
129
130
 
130
131
        # We get a working branch
131
132
        branch.repository.get_revision_graph()
132
 
        self.assertEqual(_mod_revision.NULL_REVISION, branch.last_revision())
 
133
        self.assertEqual(_mod_revision.NULL_REVISION,
 
134
                         _mod_revision.ensure_null(branch.last_revision()))
133
135
 
134
136
        self.assertServerFinishesCleanly(process)
135
137
 
209
211
            
210
212
            branch.repository.get_revision_graph()
211
213
            self.assertEqual(_mod_revision.NULL_REVISION,
212
 
                             branch.last_revision())
 
214
                             _mod_revision.ensure_null(branch.last_revision()))
213
215
            # Check we can perform write operations
214
216
            branch.bzrdir.root_transport.mkdir('foo')
215
217
        finally: