~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Patch Queue Manager
  • Date: 2011-11-28 03:52:43 UTC
  • mfrom: (6305.1.1 fix-dotted-revno)
  • Revision ID: pqm@pqm.ubuntu.com-20111128035243-w2jbl870d8lq94v1
(jelmer) Fix fallback for RemoteBranch.revision_id_to_dotted_revno,
 and add a test. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2075
2075
            branch.revision_id_to_dotted_revno, 'unknown')
2076
2076
        self.assertFinished(client)
2077
2077
 
 
2078
    def test_dotted_no_smart_verb(self):
 
2079
        self.setup_smart_server_with_call_log()
 
2080
        branch = self.make_branch('.')
 
2081
        self.disable_verb('Branch.revision_id_to_revno')
 
2082
        self.reset_smart_call_log()
 
2083
        self.assertEquals((0, ),
 
2084
            branch.revision_id_to_dotted_revno('null:'))
 
2085
        self.assertLength(7, self.hpss_calls)
 
2086
 
2078
2087
 
2079
2088
class TestBzrDirGetSetConfig(RemoteBzrDirTestCase):
2080
2089