diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-11-14 21:44:47 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-11-14 21:44:47 +0100 |
commit | 10223fcc2785cfd9da711efc744d7ebff51f2274 (patch) | |
tree | ebb19394ba2460ea64c4eb686a8bbe29f4302914 /rhodecode/lib/vcs/backends/git/changeset.py | |
parent | 5ec3f9a84f5ae86eb447cb5606f7cf602c561218 (diff) |
implements #649 added two seperate method for author and commiter to VCS changeset class
- switch author for git backed to be the real author not commiter
--HG--
branch : beta
Diffstat (limited to 'rhodecode/lib/vcs/backends/git/changeset.py')
-rw-r--r-- | rhodecode/lib/vcs/backends/git/changeset.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rhodecode/lib/vcs/backends/git/changeset.py b/rhodecode/lib/vcs/backends/git/changeset.py index 1f19579a..3887b388 100644 --- a/rhodecode/lib/vcs/backends/git/changeset.py +++ b/rhodecode/lib/vcs/backends/git/changeset.py @@ -41,6 +41,7 @@ class GitChangeset(BaseChangeset): self._tree_id = commit.tree self._commiter_property = 'committer' + self._author_property = 'author' self._date_property = 'commit_time' self._date_tz_property = 'commit_timezone' self.revision = repository.revisions.index(revision) @@ -51,10 +52,14 @@ class GitChangeset(BaseChangeset): self._paths = {} @LazyProperty - def author(self): + def commiter(self): return safe_unicode(getattr(self._commit, self._commiter_property)) @LazyProperty + def author(self): + return safe_unicode(getattr(self._commit, self._author_property)) + + @LazyProperty def date(self): return date_fromtimestamp(getattr(self._commit, self._date_property), getattr(self._commit, self._date_tz_property)) |