Mercurial > hgsubversion
comparison tests/test_utility_commands.py @ 549:b97f5734e5a8
utility_commands: unbreak hg svn info with single-directory clones
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 06 Feb 2010 10:57:58 -0600 |
parents | 00ecb2bc005c |
children | f0159775e0f1 |
comparison
equal
deleted
inserted
replaced
548:2148eb4b4da4 | 549:b97f5734e5a8 |
---|---|
63 'repourl': self.repourl, | 63 'repourl': self.repourl, |
64 'branch': 'branches/the_branch', | 64 'branch': 'branches/the_branch', |
65 'rev': 5, | 65 'rev': 5, |
66 }) | 66 }) |
67 self.assertEqual(actual, expected) | 67 self.assertEqual(actual, expected) |
68 | |
69 def test_info_single(self): | |
70 self._load_fixture_and_fetch('two_heads.svndump', subdir='trunk') | |
71 hg.update(self.repo, 'tip') | |
72 u = ui.ui() | |
73 u.pushbuffer() | |
74 utility_commands.info(u, self.repo, self.wc_path) | |
75 actual = u.popbuffer() | |
76 expected = (expected_info_output % | |
77 {'date': '2008-10-08 01:39:29 +0000 (Wed, 08 Oct 2008)', | |
78 'repourl': self.repourl, | |
79 'branch': 'trunk', | |
80 'rev': 6, | |
81 }) | |
82 self.assertStringEqual(expected, actual) | |
68 | 83 |
69 def test_parent_output(self): | 84 def test_parent_output(self): |
70 self._load_fixture_and_fetch('two_heads.svndump') | 85 self._load_fixture_and_fetch('two_heads.svndump') |
71 u = ui.ui() | 86 u = ui.ui() |
72 u.pushbuffer() | 87 u.pushbuffer() |