comparison tests/test_fetch_mappings.py @ 1215:77bd24841a5f

tests: remove empty branchmap test Future patches will break this test and allow empty branch mappings. So, instead of fixing this to have BranchMap take a meta object, we just get rid of it. An future test will be added to cover this case and more.
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 24 Mar 2014 11:20:48 -0500
parents 49791c40a8a5
children 57d65269d30c 253b2ab253a1
comparison
equal deleted inserted replaced
1214:2c793092862b 1215:77bd24841a5f
288 repo = self.repo 288 repo = self.repo
289 289
290 for r in repo: 290 for r in repo:
291 self.assertEquals(verify.verify(ui, repo, rev=r), 0) 291 self.assertEquals(verify.verify(ui, repo, rev=r), 0)
292 292
293 def test_branchmap_no_replacement(self):
294 '''
295 test that empty mappings are rejected
296
297 Empty mappings are lines like 'this ='. The most sensible thing to do
298 is to not convert the 'this' branches. Until we can do that, we settle
299 with aborting.
300 '''
301 repo_path = self.load_svndump('propset-branch.svndump')
302 branchmap = open(self.branchmap, 'w')
303 branchmap.write("closeme =\n")
304 branchmap.close()
305 self.assertRaises(hgutil.Abort,
306 maps.BranchMap, self.ui(), self.branchmap)
307
308 def test_tagmap(self): 293 def test_tagmap(self):
309 repo_path = self.load_svndump('basic_tag_tests.svndump') 294 repo_path = self.load_svndump('basic_tag_tests.svndump')
310 tagmap = open(self.tagmap, 'w') 295 tagmap = open(self.tagmap, 'w')
311 tagmap.write("tag_r3 = 3.x # stuffy\n") 296 tagmap.write("tag_r3 = 3.x # stuffy\n")
312 tagmap.write("copied_tag = \n") 297 tagmap.write("copied_tag = \n")