Mercurial > hgsubversion
comparison tests/comprehensive/test_verify.py @ 441:de085126dbd4
svncommands: use rev instead of verifynode -- should not have to be a node
rev is also more compliant with other hg ui, and would nicely translate into
a -r option from the command line.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 16 Jun 2009 13:04:21 +0200 |
parents | 868693631372 |
children | 1fd3cfa47c5e |
comparison
equal
deleted
inserted
replaced
440:80909328aef1 | 441:de085126dbd4 |
---|---|
18 subdir = test_util.subdir.get(name, '') | 18 subdir = test_util.subdir.get(name, '') |
19 repo = self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid) | 19 repo = self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid) |
20 assert len(self.repo) > 0 | 20 assert len(self.repo) > 0 |
21 for i in repo: | 21 for i in repo: |
22 ctx = repo[i] | 22 ctx = repo[i] |
23 self.assertEqual(svncommands.verify(repo.ui, repo, verifynode=ctx.node()), 0) | 23 self.assertEqual(svncommands.verify(repo.ui, repo, rev=ctx.node()), 0) |
24 | 24 |
25 def buildmethod(case, name, stupid): | 25 def buildmethod(case, name, stupid): |
26 m = lambda self: self._do_case(case, stupid) | 26 m = lambda self: self._do_case(case, stupid) |
27 m.__name__ = name | 27 m.__name__ = name |
28 bits = case, stupid and 'stupid' or 'real' | 28 bits = case, stupid and 'stupid' or 'real' |