comparison tests/test_rebuildmeta.py @ 453:bb612e625be6

tags: handle copyfrom old versions of tags more correctly
author Augie Fackler <durin42@gmail.com>
date Wed, 01 Jul 2009 14:42:46 -0500
parents ae35c389cdef
children 63cb630d667d
comparison
equal deleted inserted replaced
452:ae35c389cdef 453:bb612e625be6
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()))