Mercurial > hg
changeset 4776:03844af5ebcd
convert: svn: skip revisions without file entries
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 02 Jul 2007 08:31:02 -0700 |
parents | 739fd34f5d66 |
children | 5ee5cbfceff3 |
files | hgext/convert/subversion.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Mon Jul 02 07:54:51 2007 -0700 +++ b/hgext/convert/subversion.py Mon Jul 02 08:31:02 2007 -0700 @@ -239,12 +239,15 @@ # Maybe it was added and there is no more history. entrypath = get_entry_from_path(path, module=self.module) # self.ui.write("entrypath %s\n" % entrypath) - if not entrypath: + if entrypath is None: # Outside our area of interest self.ui.debug("boring@%s: %s\n" % (revnum, path)) continue entry = entrypath.decode(self.encoding) ent = orig_paths[path] + if not entrypath: + # TODO: branch creation event + pass kind = svn.ra.check_path(self.ra, entrypath, revnum) if kind == svn.core.svn_node_file: @@ -393,6 +396,8 @@ # a list of (filename, id) where id lets us retrieve the file. # eg in git, id is the object hash. for svn it'll be the self.files[rev] = zip(entries, [rev] * len(entries)) + if not entries: + return # Example SVN datetime. Includes microseconds. # ISO-8601 conformant