Mercurial > public > src > rhodecode
changeset 2550:c9b08fdcb788 beta
fixed git annotate
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 13 Jun 2012 19:35:45 +0200 |
parents | c4c36060d5f0 |
children | 08fc67c1c948 |
files | rhodecode/lib/vcs/backends/git/changeset.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/git/changeset.py Mon Jun 11 23:27:27 2012 +0200 +++ b/rhodecode/lib/vcs/backends/git/changeset.py Wed Jun 13 19:35:45 2012 +0200 @@ -259,10 +259,11 @@ # --root ==> doesn't put '^' character for bounderies # -r sha ==> blames for the given revision so, se = self.repository.run_git_command(cmd) + annotate = [] for i, blame_line in enumerate(so.split('\n')[:-1]): ln_no = i + 1 - id, line = re.split(r' \(.+?\) ', blame_line, 1) + id, line = re.split(r' ', blame_line, 1) annotate.append((ln_no, self.repository.get_changeset(id), line)) return annotate