237 else: |
237 else: |
238 self.ui.debug("No copyfrom path, don't know what to do.\n") |
238 self.ui.debug("No copyfrom path, don't know what to do.\n") |
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: |
251 if ent.copyfrom_path: |
254 if ent.copyfrom_path: |
252 copyfrom_path = get_entry_from_path(ent.copyfrom_path) |
255 copyfrom_path = get_entry_from_path(ent.copyfrom_path) |
391 |
394 |
392 self.modulemap[revnum] = self.module # track backwards in time |
395 self.modulemap[revnum] = self.module # track backwards in time |
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 |
399 # '2007-01-04T17:35:00.902377Z' |
404 # '2007-01-04T17:35:00.902377Z' |
400 date = util.parsedate(date[:18] + " UTC", ["%Y-%m-%dT%H:%M:%S"]) |
405 date = util.parsedate(date[:18] + " UTC", ["%Y-%m-%dT%H:%M:%S"]) |