##// END OF EJS Templates
convert: handle invalid subversion source paths
Mads Kiilerich -
r14152:00121103 default
parent child Browse files
Show More
@@ -278,7 +278,10 b' class svn_source(converter_source):'
278 raise util.Abort(_('svn: start revision %s is not an integer')
278 raise util.Abort(_('svn: start revision %s is not an integer')
279 % self.startrev)
279 % self.startrev)
280
280
281 self.head = self.latest(self.module, latest)
281 try:
282 self.head = self.latest(self.module, latest)
283 except SvnPathNotFound:
284 self.head = None
282 if not self.head:
285 if not self.head:
283 raise util.Abort(_('no revision found in module %s')
286 raise util.Abort(_('no revision found in module %s')
284 % self.module)
287 % self.module)
@@ -107,6 +107,11 b' Update svn repository again'
107 Committed revision 8.
107 Committed revision 8.
108 $ cd ..
108 $ cd ..
109
109
110 $ hg convert -s svn "$svnurl/non-existent-path" dest
111 initializing destination dest repository
112 abort: no revision found in module /proj B/non-existent-path
113 [255]
114
110 ########################################
115 ########################################
111
116
112 Test incremental conversion
117 Test incremental conversion
General Comments 0
You need to be logged in to leave comments. Login now