Mercurial > hgsubversion
comparison tests/test_rebuildmeta.py @ 851:9ce00cb1d676
Merge alternate tunnel schemes.
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Sat, 25 Feb 2012 14:51:22 -0600 |
| parents | 312b37bc5e20 |
| children | 50c13e01c7e3 |
comparison
equal
deleted
inserted
replaced
| 850:d3bc067c0f72 | 851:9ce00cb1d676 |
|---|---|
| 53 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), | 53 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), |
| 54 'no .hg/svn directory in the source!') | 54 'no .hg/svn directory in the source!') |
| 55 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), | 55 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), |
| 56 'no .hg/svn directory in the destination!') | 56 'no .hg/svn directory in the destination!') |
| 57 dest = hg.repository(u, os.path.dirname(dest.path)) | 57 dest = hg.repository(u, os.path.dirname(dest.path)) |
| 58 for tf in ('lastpulled', 'rev_map', 'uuid', 'tagmap', 'layout', 'subdir', ): | 58 for tf in ('lastpulled', 'rev_map', 'uuid', 'tagmap', 'layout', 'subdir',): |
| 59 | 59 |
| 60 stf = os.path.join(src.path, 'svn', tf) | 60 stf = os.path.join(src.path, 'svn', tf) |
| 61 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf) | 61 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf) |
| 62 dtf = os.path.join(dest.path, 'svn', tf) | 62 dtf = os.path.join(dest.path, 'svn', tf) |
| 63 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) | 63 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) |
| 111 name = bname + '_stupid' | 111 name = bname + '_stupid' |
| 112 attrs[name] = buildmethod(case, name, True, False) | 112 attrs[name] = buildmethod(case, name, True, False) |
| 113 name = bname + '_single' | 113 name = bname + '_single' |
| 114 attrs[name] = buildmethod(case, name, False, True) | 114 attrs[name] = buildmethod(case, name, False, True) |
| 115 | 115 |
| 116 RebuildMetaTests = type('RebuildMetaTests', (test_util.TestBase, ), attrs) | 116 RebuildMetaTests = type('RebuildMetaTests', (test_util.TestBase,), attrs) |
| 117 | 117 |
| 118 | 118 |
| 119 def suite(): | 119 def suite(): |
| 120 all = [unittest.TestLoader().loadTestsFromTestCase(RebuildMetaTests), | 120 all_tests = [unittest.TestLoader().loadTestsFromTestCase(RebuildMetaTests), |
| 121 ] | 121 ] |
| 122 return unittest.TestSuite(all) | 122 return unittest.TestSuite(all_tests) |
