changeset 427:868693631372

verify: take a kwarg for node to check. Fixes verify tests on case-insensitive filesystems.
author Augie Fackler <durin42@gmail.com>
date Mon, 15 Jun 2009 12:26:21 -0500
parents 72e63999722f
children 96b4ae475941
files hgsubversion/svncommands.py tests/comprehensive/test_verify.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -20,7 +20,8 @@ def verify(ui, repo, *args, **opts):
     else:
         url = args[0]
 
-    ctx = repo['.']
+    rev = opts.get('verifynode', '.')
+    ctx = repo[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,8 +20,7 @@ def _do_case(self, name, stupid):
     assert len(self.repo) > 0
     for i in repo:
         ctx = repo[i]
-        hg.clean(repo, ctx.node(), False)
-        self.assertEqual(svncommands.verify(repo.ui, repo), 0)
+        self.assertEqual(svncommands.verify(repo.ui, repo, verifynode=ctx.node()), 0)
 
 def buildmethod(case, name, stupid):
     m = lambda self: self._do_case(case, stupid)