Mercurial > hgsubversion
comparison tests/comprehensive/test_stupid_pull.py @ 445:24a8471069c0
tests: test for heads equality instead of branchtags
branchtags may exclude other heads which could be dissimilar.
| author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
|---|---|
| date | Tue, 16 Jun 2009 13:58:39 +0200 |
| parents | 987bd7444f60 |
| children | 1fd3cfa47c5e |
comparison
equal
deleted
inserted
replaced
| 444:8c545dcad7b1 | 445:24a8471069c0 |
|---|---|
| 19 if subdir: | 19 if subdir: |
| 20 checkout_path += '/' + subdir | 20 checkout_path += '/' + subdir |
| 21 u.setconfig('hgsubversion', 'stupid', '1') | 21 u.setconfig('hgsubversion', 'stupid', '1') |
| 22 hg.clone(u, test_util.fileurl(checkout_path), wc2_path, update=False) | 22 hg.clone(u, test_util.fileurl(checkout_path), wc2_path, update=False) |
| 23 self.repo2 = hg.repository(ui.ui(), wc2_path) | 23 self.repo2 = hg.repository(ui.ui(), wc2_path) |
| 24 self.assertEqual(self.repo.branchtags(), self.repo2.branchtags()) | 24 self.assertEqual(self.repo.heads(), self.repo2.heads()) |
| 25 | 25 |
| 26 | 26 |
| 27 def buildmethod(case, name): | 27 def buildmethod(case, name): |
| 28 m = lambda self: self._do_case(case) | 28 m = lambda self: self._do_case(case) |
| 29 m.__name__ = name | 29 m.__name__ = name |
