Mercurial > hgsubversion
comparison tests/test_rebuildmeta.py @ 474:63cb630d667d
tags: handle the most recent commit being an edit to an svn tag properly
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 18 Jul 2009 22:30:59 -0500 |
parents | bb612e625be6 |
children | 1fd3cfa47c5e |
comparison
equal
deleted
inserted
replaced
473:45df4d9320fa | 474:63cb630d667d |
---|---|
32 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf) | 32 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf) |
33 dtf = os.path.join(dest.path, 'svn', tf) | 33 dtf = os.path.join(dest.path, 'svn', tf) |
34 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) | 34 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) |
35 old, new = open(stf).read(), open(dtf).read() | 35 old, new = open(stf).read(), open(dtf).read() |
36 # uncomment next line for easy-ish debugging. | 36 # uncomment next line for easy-ish debugging. |
37 os.system('diff -u %s %s' % (stf, dtf)) | 37 # os.system('diff -u %s %s' % (stf, dtf)) |
38 self.assertEqual(old, new) | 38 self.assertEqual(old, new) |
39 self.assertEqual(src.branchtags(), dest.branchtags()) | 39 self.assertEqual(src.branchtags(), dest.branchtags()) |
40 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'))) |
41 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'))) |
42 self.assertEqual(sorted(srcbi.keys()), sorted(destbi.keys())) | 42 self.assertEqual(sorted(srcbi.keys()), sorted(destbi.keys())) |