/breezy-svn/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-svn/trunk

« back to all changes in this revision

Viewing changes to tests/test_branch.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-09 09:28:31 UTC
  • Revision ID: jelmer@jelmer.uk-20180609092831-fce99rq1m3020ttx
Make svn_transport a separate variable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
            b.repository.generate_revision_id(1, u"trunk", b.repository.get_mapping()))
133
133
 
134
134
        self.assertEquals(subvertpy.NODE_DIR,
135
 
                b.repository.transport.check_path("tags/mytag", 3))
 
135
                b.repository.svn_transport.check_path("tags/mytag", 3))
136
136
 
137
137
    def test_tag_set_dupe(self):
138
138
        repos_url = self.make_repository('a')
152
152
        b.tags.set_tag(u"mytag", b.repository.generate_revision_id(1, u"trunk", b.repository.get_mapping()))
153
153
 
154
154
        self.assertEquals(subvertpy.NODE_DIR,
155
 
                b.repository.transport.check_path("tags/mytag", 3))
 
155
                b.repository.svn_transport.check_path("tags/mytag", 3))
156
156
        self.assertEquals(3, b.repository.get_latest_revnum())
157
157
 
158
158
        b.tags.set_tag(u"mytag", target)
178
178
        b.tags.set_tag(u"mytag", b.repository.generate_revision_id(1, u"trunk", b.repository.get_mapping()))
179
179
 
180
180
        self.assertEquals(subvertpy.NODE_DIR,
181
 
                b.repository.transport.check_path("tags/mytag", 3))
 
181
                b.repository.svn_transport.check_path("tags/mytag", 3))
182
182
        self.assertEquals(3, b.repository.get_latest_revnum())
183
183
 
184
184
        oldtagrevid = b.repository.generate_revision_id(1, u"trunk", b.repository.get_mapping())
189
189
        b.tags.set_tag(u"mytag", newtagrevid)
190
190
 
191
191
        self.assertEquals(subvertpy.NODE_DIR,
192
 
                b.repository.transport.check_path("tags/mytag", 4))
 
192
                b.repository.svn_transport.check_path("tags/mytag", 4))
193
193
        self.assertEquals(4, b.repository.get_latest_revnum())
194
194
        b = Branch.open(repos_url + "/trunk")
195
195
        log = self.client_log(repos_url, 4, 0)
235
235
                b.repository.get_mapping()))
236
236
 
237
237
        self.assertEquals(subvertpy.NODE_DIR,
238
 
                b.repository.transport.check_path("tags", 3))
 
238
                b.repository.svn_transport.check_path("tags", 3))
239
239
 
240
240
        self.assertEquals(subvertpy.NODE_DIR,
241
 
                b.repository.transport.check_path("tags/mytag", 4))
 
241
                b.repository.svn_transport.check_path("tags/mytag", 4))
242
242
        self.assertEquals(4, b.repository.get_latest_revnum())
243
243
 
244
244
    def test_tag_set_not_supported(self):