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