Mercurial > hgsubversion
comparison tests/test_utility_commands.py @ 503:00ecb2bc005c
Add a -r option to hg svn. Use with hg svn info to change the mercurial rev.
| author | Jason Ostrander <jason@sentilla.com> |
|---|---|
| date | Thu, 10 Dec 2009 13:04:57 -0800 |
| parents | 37c96b78b8c0 |
| children | b97f5734e5a8 |
comparison
equal
deleted
inserted
replaced
| 502:89eda60c90b3 | 503:00ecb2bc005c |
|---|---|
| 50 expected = (expected_info_output % | 50 expected = (expected_info_output % |
| 51 {'date': '2008-10-08 01:39:29 +0000 (Wed, 08 Oct 2008)', | 51 {'date': '2008-10-08 01:39:29 +0000 (Wed, 08 Oct 2008)', |
| 52 'repourl': self.repourl, | 52 'repourl': self.repourl, |
| 53 'branch': 'trunk', | 53 'branch': 'trunk', |
| 54 'rev': 6, | 54 'rev': 6, |
| 55 }) | |
| 56 self.assertEqual(actual, expected) | |
| 57 hg.update(self.repo, 'default') | |
| 58 u.pushbuffer() | |
| 59 utility_commands.info(u, self.repo, self.wc_path, rev=3) | |
| 60 actual = u.popbuffer() | |
| 61 expected = (expected_info_output % | |
| 62 {'date': '2008-10-08 01:39:05 +0000 (Wed, 08 Oct 2008)', | |
| 63 'repourl': self.repourl, | |
| 64 'branch': 'branches/the_branch', | |
| 65 'rev': 5, | |
| 55 }) | 66 }) |
| 56 self.assertEqual(actual, expected) | 67 self.assertEqual(actual, expected) |
| 57 | 68 |
| 58 def test_parent_output(self): | 69 def test_parent_output(self): |
| 59 self._load_fixture_and_fetch('two_heads.svndump') | 70 self._load_fixture_and_fetch('two_heads.svndump') |
