changeset 4773:cfbce076f2de

convert: svn: abort if module stat fails
author Brendan Cully <brendan@kublai.com>
date Mon, 02 Jul 2007 07:22:11 -0700
parents 69548a9d9796
children d305852a5ec8
files hgext/convert/subversion.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Sun Jul 01 23:28:21 2007 -0700
+++ b/hgext/convert/subversion.py	Mon Jul 02 07:22:11 2007 -0700
@@ -123,6 +123,8 @@
         if not latest:
             latest = svn.ra.get_latest_revnum(self.ra)
         dirent = svn.ra.stat(self.ra, self.module, latest)
+        if not dirent:
+            raise util.Abort('module %s not found in revision %d' % (self.module, latest))
         self.last_changed = dirent.created_rev
 
         self.head = self.rev(self.last_changed)