Mercurial > hgsubversion
comparison tests/test_rebuildmeta.py @ 448:fbc7cf4fd701
tags: reinstate a tag map file in a better way
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Tue, 23 Jun 2009 21:33:40 -0500 |
| parents | 0d3b5acb1d51 |
| children | ae35c389cdef |
comparison
equal
deleted
inserted
replaced
| 447:0d3b5acb1d51 | 448:fbc7cf4fd701 |
|---|---|
| 25 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), | 25 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), |
| 26 'no .hg/svn directory in the source!') | 26 'no .hg/svn directory in the source!') |
| 27 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), | 27 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), |
| 28 'no .hg/svn directory in the destination!') | 28 'no .hg/svn directory in the destination!') |
| 29 dest = hg.repository(u, os.path.dirname(dest.path)) | 29 dest = hg.repository(u, os.path.dirname(dest.path)) |
| 30 for tf in ('rev_map', 'uuid'): | 30 for tf in ('rev_map', 'uuid', 'tagmap', ): |
| 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() |
