Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/svn.py
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | def convert_commit_date(self, date): | ||||
The transformed date. | The transformed date. | ||||
""" | """ | ||||
return converters.svn_date_to_swh_date(date) | return converters.svn_date_to_swh_date(date) | ||||
def convert_commit_author(self, author): | def convert_commit_author(self, author): | ||||
"""Convert the commit author into an swh person. | """Convert the commit author into an swh person. | ||||
The user becomes a dictionary of the form:: | |||||
{ | |||||
name: author, | |||||
email: '', | |||||
fullname: author | |||||
} | |||||
Args: | Args: | ||||
author (str): the commit author to convert. | author (str): the commit author to convert. | ||||
Returns: | Returns: | ||||
The transformed author as dict. | Person: a model object | ||||
""" | """ | ||||
return converters.svn_author_to_swh_person(author) | return converters.svn_author_to_swh_person(author) | ||||
def __to_entry(self, log_entry): | def __to_entry(self, log_entry): | ||||
changed_paths, rev, revprops, has_children = log_entry | changed_paths, rev, revprops, has_children = log_entry | ||||
author_date = self.convert_commit_date( | author_date = self.convert_commit_date( | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |