##// END OF EJS Templates
convert: svn: skip revisions without file entries
Brendan Cully -
r4776:03844af5 default
parent child Browse files
Show More
@@ -239,12 +239,15 b' class convert_svn(converter_source):'
239 239 # Maybe it was added and there is no more history.
240 240 entrypath = get_entry_from_path(path, module=self.module)
241 241 # self.ui.write("entrypath %s\n" % entrypath)
242 if not entrypath:
242 if entrypath is None:
243 243 # Outside our area of interest
244 244 self.ui.debug("boring@%s: %s\n" % (revnum, path))
245 245 continue
246 246 entry = entrypath.decode(self.encoding)
247 247 ent = orig_paths[path]
248 if not entrypath:
249 # TODO: branch creation event
250 pass
248 251
249 252 kind = svn.ra.check_path(self.ra, entrypath, revnum)
250 253 if kind == svn.core.svn_node_file:
@@ -393,6 +396,8 b' class convert_svn(converter_source):'
393 396 # a list of (filename, id) where id lets us retrieve the file.
394 397 # eg in git, id is the object hash. for svn it'll be the
395 398 self.files[rev] = zip(entries, [rev] * len(entries))
399 if not entries:
400 return
396 401
397 402 # Example SVN datetime. Includes microseconds.
398 403 # ISO-8601 conformant
General Comments 0
You need to be logged in to leave comments. Login now