# HG changeset patch # User Brendan Cully # Date 2007-07-02 14:22:11 # Node ID cfbce076f2dea7f40be2e46e7b84c2f76d5c9a53 # Parent 69548a9d979698d77611503a335601781ee21269 convert: svn: abort if module stat fails diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -123,6 +123,8 @@ class convert_svn(converter_source): 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)