diff rhodecode/lib/vcs/backends/base.py @ 3004:3bfd5852c218 beta

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
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 14 Nov 2012 21:44:47 +0100
parents 32471bd1f4ee
children 8182ebed2922
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/base.py	Tue Nov 13 23:52:14 2012 +0100
+++ b/rhodecode/lib/vcs/backends/base.py	Wed Nov 14 21:44:47 2012 +0100
@@ -432,6 +432,30 @@
         raise NotImplementedError
 
     @LazyProperty
+    def commiter(self):
+        """
+        Returns Commiter for given commit
+        """
+
+        raise NotImplementedError
+
+    @LazyProperty
+    def commiter_name(self):
+        """
+        Returns Author name for given commit
+        """
+
+        return author_name(self.commiter)
+
+    @LazyProperty
+    def commiter_email(self):
+        """
+        Returns Author email address for given commit
+        """
+
+        return author_email(self.commiter)
+
+    @LazyProperty
     def author(self):
         """
         Returns Author for given commit