comparison tests/test_rebuildmeta.py @ 748:e1e2af66953d

svnmeta: store subdir in a file, and verify it when loading.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 12 Nov 2010 19:22:20 +0100
parents dcac6dc1abe6
children 86d124a8768e
comparison
equal deleted inserted replaced
747:34b25f6bc4ef 748:e1e2af66953d
42 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), 42 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')),
43 'no .hg/svn directory in the source!') 43 'no .hg/svn directory in the source!')
44 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), 44 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')),
45 'no .hg/svn directory in the destination!') 45 'no .hg/svn directory in the destination!')
46 dest = hg.repository(u, os.path.dirname(dest.path)) 46 dest = hg.repository(u, os.path.dirname(dest.path))
47 for tf in ('rev_map', 'uuid', 'tagmap', 'layout', ): 47 for tf in ('rev_map', 'uuid', 'tagmap', 'layout', 'subdir', ):
48 stf = os.path.join(src.path, 'svn', tf) 48 stf = os.path.join(src.path, 'svn', tf)
49 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf) 49 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf)
50 dtf = os.path.join(dest.path, 'svn', tf) 50 dtf = os.path.join(dest.path, 'svn', tf)
51 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) 51 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf)
52 old, new = open(stf).read(), open(dtf).read() 52 old, new = open(stf).read(), open(dtf).read()