Mercurial > hgsubversion
comparison tests/test_fetch_mappings.py @ 702:841399d10c79
verify: fix verifying mapped branches.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Tue, 07 Sep 2010 14:33:56 +0200 |
parents | d2ef7220a079 |
children | 467b95348e6a |
comparison
equal
deleted
inserted
replaced
701:3b8088de027d | 702:841399d10c79 |
---|---|
206 | 206 |
207 def test_branchmap_rebuildmeta_stupid(self): | 207 def test_branchmap_rebuildmeta_stupid(self): |
208 '''test rebuildmeta on a branchmapped clone (stupid)''' | 208 '''test rebuildmeta on a branchmapped clone (stupid)''' |
209 self.test_branchmap_rebuildmeta(True) | 209 self.test_branchmap_rebuildmeta(True) |
210 | 210 |
211 def test_branchmap_verify(self, stupid=False): | |
212 '''test verify on a branchmapped clone''' | |
213 test_util.load_svndump_fixture(self.repo_path, 'branchmap.svndump') | |
214 branchmap = open(self.branchmap, 'w') | |
215 branchmap.write("badname = dit\n") | |
216 branchmap.write("feature = dah\n") | |
217 branchmap.close() | |
218 ui = self.ui(stupid) | |
219 ui.setconfig('hgsubversion', 'branchmap', self.branchmap) | |
220 commands.clone(ui, test_util.fileurl(self.repo_path), | |
221 self.wc_path, branchmap=self.branchmap) | |
222 repo = self.repo | |
223 | |
224 for r in repo: | |
225 self.assertEquals(svncommands.verify(ui, repo, rev=r), 0) | |
226 | |
227 def test_branchmap_verify_stupid(self): | |
228 '''test verify on a branchmapped clone (stupid)''' | |
229 self.test_branchmap_verify(True) | |
230 | |
211 def test_branchmap_no_replacement(self): | 231 def test_branchmap_no_replacement(self): |
212 ''' | 232 ''' |
213 test that empty mappings are rejected | 233 test that empty mappings are rejected |
214 | 234 |
215 Empty mappings are lines like 'this ='. The most sensible thing to do | 235 Empty mappings are lines like 'this ='. The most sensible thing to do |