~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testbranch.py

  • Committer: Robert Collins
  • Date: 2005-10-19 07:25:40 UTC
  • Revision ID: robertc@robertcollins.net-20051019072540-0ab4d3bd16ff8c94
Change Transport.* to work with URL's.

 * bzrlib.transport.Transport now accepts *ONLY* url escaped relative paths 
   to apis like 'put', 'get' and 'has'. This is to provide consistent
   behaviour - it operates on url's only. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        self.assertTrue(os.path.exists('b/one'))
117
117
        self.assertFalse(os.path.exists('b/two'))
118
118
        
119
 
 
120
119
    def test_record_initial_ghost_merge(self):
121
120
        """A pending merge with no revision present is still a merge."""
122
121
        branch = Branch.initialize('.')
170
169
                                        'FOO', 'A')
171
170
        self.assertEqual('FOO', branch.revision_store.get('A', 'sig').read())
172
171
 
 
172
    def test__relcontrolfilename(self):
 
173
        branch = Branch.initialize('.')
 
174
        self.assertEqual('.bzr/%25', branch._rel_controlfilename('%'))
 
175
        
 
176
    def test__relcontrolfilename_empty(self):
 
177
        branch = Branch.initialize('.')
 
178
        self.assertEqual('.bzr', branch._rel_controlfilename(''))
 
179
 
173
180
 
174
181
class TestRemote(TestCaseWithWebserver):
175
182