comparison tests/test_rebuildmeta.py @ 414:343da842dbe6

split parts of HgChangeReceiver out into an SVNMeta class Less obvious things: - my reordering in the previous was incomplete - _branch_for_path() was unused, so I removed it - _svnpath() was removed in favor of identical _remotename() - I've checked "no cover" bits manually
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 11 Jun 2009 18:56:35 +0200
parents a98b8d424221
children cd6317fe70be
comparison
equal deleted inserted replaced
413:ac0cc3c9ea63 414:343da842dbe6
36 open(dtf).read()) 36 open(dtf).read())
37 self.assertEqual(src.branchtags(), dest.branchtags()) 37 self.assertEqual(src.branchtags(), dest.branchtags())
38 srcbi = pickle.load(open(os.path.join(src.path, 'svn', 'branch_info'))) 38 srcbi = pickle.load(open(os.path.join(src.path, 'svn', 'branch_info')))
39 destbi = pickle.load(open(os.path.join(dest.path, 'svn', 'branch_info'))) 39 destbi = pickle.load(open(os.path.join(dest.path, 'svn', 'branch_info')))
40 self.assertEqual(sorted(srcbi.keys()), sorted(destbi.keys())) 40 self.assertEqual(sorted(srcbi.keys()), sorted(destbi.keys()))
41 revkeys = hg_delta_editor.HgChangeReceiver(dest).revmap.keys() 41 revkeys = hg_delta_editor.HgChangeReceiver(dest).meta.revmap.keys()
42 for branch in destbi: 42 for branch in destbi:
43 srcinfo = srcbi[branch] 43 srcinfo = srcbi[branch]
44 destinfo = destbi[branch] 44 destinfo = destbi[branch]
45 if destinfo[:2] == (None, 0): 45 if destinfo[:2] == (None, 0):
46 self.assert_(srcinfo[2] <= destinfo[2]) 46 self.assert_(srcinfo[2] <= destinfo[2])