Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 542:bb00f7ca5b8c
Rewrite simple_branch.sh fixture from svn dump
I needed it to reproduce the space in branch issue, but failed to do so. At
least I recreated the fixture, so here it is.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 02 Feb 2010 23:20:42 +0100 |
parents | d978192f0d63 |
children | 95eca255739e |
comparison
equal
deleted
inserted
replaced
541:d380e7e4175a | 542:bb00f7ca5b8c |
---|---|
31 self.assertEqual(repo['tip'], repo[1]) | 31 self.assertEqual(repo['tip'], repo[1]) |
32 | 32 |
33 def test_branches(self): | 33 def test_branches(self): |
34 repo = self._load_fixture_and_fetch('simple_branch.svndump') | 34 repo = self._load_fixture_and_fetch('simple_branch.svndump') |
35 self.assertEqual(node.hex(repo[0].node()), | 35 self.assertEqual(node.hex(repo[0].node()), |
36 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') | 36 'a1ff9f5d90852ce7f8e607fa144066b0a06bdc57') |
37 self.assertEqual(node.hex(repo['tip'].node()), | 37 self.assertEqual(node.hex(repo['tip'].node()), |
38 'f1ff5b860f5dbb9a59ad0921a79da77f10f25109') | 38 '545e36ed13615e39c5c8fb0c325109d8cb8e00c3') |
39 self.assertEqual(len(repo['tip'].parents()), 1) | 39 self.assertEqual(len(repo['tip'].parents()), 1) |
40 self.assertEqual(repo['tip'].parents()[0], repo['default']) | 40 self.assertEqual(repo['tip'].parents()[0], repo['default']) |
41 self.assertEqual(repo['tip'].extra()['convert_revision'], | 41 self.assertEqual(repo['tip'].extra()['convert_revision'], |
42 'svn:df2126f7-00ab-4d49-b42c-7e981dde0bcf/branches/the_branch@4') | 42 'svn:3cd547df-371e-4add-bccf-aba732a2baf5/branches/the_branch@4') |
43 self.assertEqual(repo['default'].extra()['convert_revision'], | 43 self.assertEqual(repo['default'].extra()['convert_revision'], |
44 'svn:df2126f7-00ab-4d49-b42c-7e981dde0bcf/trunk@3') | 44 'svn:3cd547df-371e-4add-bccf-aba732a2baf5/trunk@3') |
45 self.assertEqual(len(repo.heads()), 1) | 45 self.assertEqual(len(repo.heads()), 1) |
46 | 46 |
47 def test_two_branches_with_heads(self): | 47 def test_two_branches_with_heads(self): |
48 repo = self._load_fixture_and_fetch('two_heads.svndump') | 48 repo = self._load_fixture_and_fetch('two_heads.svndump') |
49 self.assertEqual(node.hex(repo[0].node()), | 49 self.assertEqual(node.hex(repo[0].node()), |