# HG changeset patch
# User Bryan O'Sullivan <bryano@fb.com>
# Date 1334779714 25200
# Node ID 2a034bd52d1449cd5a90e766a994dd56e1f866bd
# Parent  258f60678791ce418767421b34cd8cffd0226c10
verify: skip over missing files instead of crashing

diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -57,7 +57,11 @@ def verify(ui, repo, args=None, **opts):
         if branchpath:
             fp = branchpath + '/' + fn
         data, mode = svn.get_file(posixpath.normpath(fp), srev)
-        fctx = ctx[fn]
+        try:
+            fctx = ctx[fn]
+        except error.LookupError:
+            result = 1
+            continue
         dmatch = fctx.data() == data
         mmatch = fctx.flags() == mode
         if not (dmatch and mmatch):