comparison tests/test_rebuildmeta.py @ 452:ae35c389cdef

tags: allow editing tags of closed branches without reopening the branch
author Augie Fackler <durin42@gmail.com>
date Fri, 26 Jun 2009 14:53:58 -0500
parents fbc7cf4fd701
children bb612e625be6
comparison
equal deleted inserted replaced
451:e533e78f1b2f 452:ae35c389cdef
31 stf = os.path.join(src.path, 'svn', tf) 31 stf = os.path.join(src.path, 'svn', tf)
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.
37 #os.system('diff -u %s %s' % (stf, dtf))
36 self.assertEqual(old, new) 38 self.assertEqual(old, new)
37 self.assertEqual(src.branchtags(), dest.branchtags()) 39 self.assertEqual(src.branchtags(), dest.branchtags())
38 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')))
39 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')))
40 self.assertEqual(sorted(srcbi.keys()), sorted(destbi.keys())) 42 self.assertEqual(sorted(srcbi.keys()), sorted(destbi.keys()))