Mercurial > hgsubversion
comparison tests/test_rebuildmeta.py @ 622:25714b4954b7
test_rebuildmeta: use just added diff support when comparing files.
| author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
|---|---|
| date | Wed, 23 Jun 2010 13:42:53 +0200 |
| parents | 00393e9abff8 |
| children | ea0f42e0004d |
comparison
equal
deleted
inserted
replaced
| 621:3e18cdcb6e00 | 622:25714b4954b7 |
|---|---|
| 33 stf = os.path.join(src.path, 'svn', tf) | 33 stf = os.path.join(src.path, 'svn', tf) |
| 34 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf) | 34 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf) |
| 35 dtf = os.path.join(dest.path, 'svn', tf) | 35 dtf = os.path.join(dest.path, 'svn', tf) |
| 36 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) | 36 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) |
| 37 old, new = open(stf).read(), open(dtf).read() | 37 old, new = open(stf).read(), open(dtf).read() |
| 38 # uncomment next line for easy-ish debugging. | 38 self.assertMultiLineEqual(old, new) |
| 39 # os.system('diff -u %s %s' % (stf, dtf)) | |
| 40 self.assertEqual(old, new) | |
| 41 self.assertEqual(src.branchtags(), dest.branchtags()) | 39 self.assertEqual(src.branchtags(), dest.branchtags()) |
| 42 srcbi = pickle.load(open(os.path.join(src.path, 'svn', 'branch_info'))) | 40 srcbi = pickle.load(open(os.path.join(src.path, 'svn', 'branch_info'))) |
| 43 destbi = pickle.load(open(os.path.join(dest.path, 'svn', 'branch_info'))) | 41 destbi = pickle.load(open(os.path.join(dest.path, 'svn', 'branch_info'))) |
| 44 self.assertEqual(sorted(srcbi.keys()), sorted(destbi.keys())) | 42 self.assertEqual(sorted(srcbi.keys()), sorted(destbi.keys())) |
| 45 revkeys = svnmeta.SVNMeta(dest).revmap.keys() | 43 revkeys = svnmeta.SVNMeta(dest).revmap.keys() |
