changeset 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 80909328aef1
children f6de36e65bcf
files hgsubversion/svncommands.py tests/comprehensive/test_verify.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -20,8 +20,7 @@ def verify(ui, repo, *args, **opts):
     else:
         url = args[0]
 
-    rev = opts.get('verifynode', '.')
-    ctx = repo[rev]
+    ctx = repo[opts.get('rev', '.')]
     if 'close' in ctx.extra():
         ui.write('cannot verify closed branch')
         return 0
--- a/tests/comprehensive/test_verify.py
+++ b/tests/comprehensive/test_verify.py
@@ -20,7 +20,7 @@ def _do_case(self, name, stupid):
     assert len(self.repo) > 0
     for i in repo:
         ctx = repo[i]
-        self.assertEqual(svncommands.verify(repo.ui, repo, verifynode=ctx.node()), 0)
+        self.assertEqual(svncommands.verify(repo.ui, repo, rev=ctx.node()), 0)
 
 def buildmethod(case, name, stupid):
     m = lambda self: self._do_case(case, stupid)