Skip to content
Snippets Groups Projects
Commit 00121103 authored by kiilerix's avatar kiilerix
Browse files

convert: handle invalid subversion source paths

parent 1fe82c93
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,10 @@
raise util.Abort(_('svn: start revision %s is not an integer')
% self.startrev)
self.head = self.latest(self.module, latest)
try:
self.head = self.latest(self.module, latest)
except SvnPathNotFound:
self.head = None
if not self.head:
raise util.Abort(_('no revision found in module %s')
% self.module)
......
......@@ -107,6 +107,11 @@
Committed revision 8.
$ cd ..
$ hg convert -s svn "$svnurl/non-existent-path" dest
initializing destination dest repository
abort: no revision found in module /proj B/non-existent-path
[255]
########################################
Test incremental conversion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment