convert: svn: abort if module stat fails
authorBrendan Cully <brendan@kublai.com>
Mon, 02 Jul 2007 07:22:11 -0700
changeset 4773 cfbce076f2de
parent 4772 69548a9d9796
child 4774 d305852a5ec8
convert: svn: abort if module stat fails
hgext/convert/subversion.py
--- 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)