Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/svn.py
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | def swh_hash_data_per_revision(self, start_revision, end_revision): | ||||
- rev: current revision | - rev: current revision | ||||
- nextrev: next revision | - nextrev: next revision | ||||
- commit: commit data (author, date, message) for such revision | - commit: commit data (author, date, message) for such revision | ||||
- objects_per_path: dictionary of path, swh hash data with type | - objects_per_path: dictionary of path, swh hash data with type | ||||
""" | """ | ||||
for commit in self.logs(start_revision, end_revision): | for commit in self.logs(start_revision, end_revision): | ||||
rev = commit['rev'] | rev = commit['rev'] | ||||
objects = self.swhreplay.compute_hashes(rev) | objects = self.swhreplay.compute_objects(rev) | ||||
olasd: What does `gens` mean? | |||||
Done Inline Actionsbadly named, i should have kepts objects (even though the type changed from dict to tuple). I meant it as generators but it's wrong, i failed to see it earlier. Thanks! ardumont: badly named, i should have kepts objects (even though the type changed from dict to tuple).
I… | |||||
if rev == end_revision: | if rev == end_revision: | ||||
nextrev = None | nextrev = None | ||||
else: | else: | ||||
nextrev = rev + 1 | nextrev = rev + 1 | ||||
yield rev, nextrev, commit, objects, self.swhreplay.directory | yield rev, nextrev, commit, objects, self.swhreplay.directory | ||||
Show All 37 Lines |
What does gens mean?