Mercurial > hgsubversion
changeset 856:2a034bd52d14
verify: skip over missing files instead of crashing
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 18 Apr 2012 13:08:34 -0700 |
parents | 258f60678791 |
children | cfee8d1eff88 |
files | hgsubversion/svncommands.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):