Mercurial > hgsubversion
comparison tests/test_externals.py @ 792:ba65c0b01d4f
replay: copy copied directories externals
| author | Patrick Mezard <pmezard@gmail.com> |
|---|---|
| date | Wed, 09 Mar 2011 22:07:26 +0100 |
| parents | a5be5ca638de |
| children | 6f0b0a47938c |
comparison
equal
deleted
inserted
replaced
| 791:05ee7d5351de | 792:ba65c0b01d4f |
|---|---|
| 256 | 256 |
| 257 # Test update --clean, used to crash | 257 # Test update --clean, used to crash |
| 258 repo.wwrite('subdir/deps/project1/a', 'foobar', '') | 258 repo.wwrite('subdir/deps/project1/a', 'foobar', '') |
| 259 commands.update(ui, repo, node='4', clean=True) | 259 commands.update(ui, repo, node='4', clean=True) |
| 260 | 260 |
| 261 def test_mergeexternals(self, stupid=False): | |
| 262 repo = self._load_fixture_and_fetch('mergeexternals.svndump', | |
| 263 externals='subrepos', | |
| 264 stupid=stupid) | |
| 265 # Check merged directories externals are fine | |
| 266 self.assertEqual("""\ | |
| 267 d1/ext = [hgsubversion] d1:^/trunk/common/ext ext | |
| 268 d2/ext = [hgsubversion] d2:^/trunk/common/ext ext | |
| 269 d3/ext3 = [hgsubversion] d3:^/trunk/common/ext ext3 | |
| 270 """, repo['tip']['.hgsub'].data()) | |
| 271 | |
| 272 def test_mergeexternals_stupid(self): | |
| 273 self.test_mergeexternals(True) | |
| 274 | |
| 261 class TestPushExternals(test_util.TestBase): | 275 class TestPushExternals(test_util.TestBase): |
| 262 def test_push_externals(self, stupid=False): | 276 def test_push_externals(self, stupid=False): |
| 263 test_util.load_fixture_and_fetch('pushexternals.svndump', | 277 test_util.load_fixture_and_fetch('pushexternals.svndump', |
| 264 self.repo_path, | 278 self.repo_path, |
| 265 self.wc_path) | 279 self.wc_path) |
