comparison tests/test_fetch_command.py @ 237:c90cfa665b81

Cope with date-less revisions.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 08 Apr 2009 13:07:23 +0200
parents a360ddc97719
children f8e9b74df403
comparison
equal deleted inserted replaced
236:c34abd2448b7 237:c90cfa665b81
6 6
7 import test_util 7 import test_util
8 8
9 9
10 class TestBasicRepoLayout(test_util.TestBase): 10 class TestBasicRepoLayout(test_util.TestBase):
11
12 def test_no_dates(self):
13 repo = self._load_fixture_and_fetch('test_no_dates.svndump')
14 self.assertEqual(repo[0].date(), (-3600.0, -3600))
15 self.assertEqual(repo[1].date(), repo[2].date())
16
11 def test_fresh_fetch_single_rev(self): 17 def test_fresh_fetch_single_rev(self):
12 repo = self._load_fixture_and_fetch('single_rev.svndump') 18 repo = self._load_fixture_and_fetch('single_rev.svndump')
13 self.assertEqual(node.hex(repo['tip'].node()), 19 self.assertEqual(node.hex(repo['tip'].node()),
14 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') 20 '434ed487136c1b47c1e8f952edb4dc5a8e6328df')
15 self.assertEqual(repo['tip'].extra()['convert_revision'], 21 self.assertEqual(repo['tip'].extra()['convert_revision'],