##// END OF EJS Templates
fixed git annotate
marcink -
r2448:c9b08fdc beta
parent child Browse files
Show More
@@ -259,10 +259,11 b' class GitChangeset(BaseChangeset):'
259 259 # --root ==> doesn't put '^' character for bounderies
260 260 # -r sha ==> blames for the given revision
261 261 so, se = self.repository.run_git_command(cmd)
262
262 263 annotate = []
263 264 for i, blame_line in enumerate(so.split('\n')[:-1]):
264 265 ln_no = i + 1
265 id, line = re.split(r' \(.+?\) ', blame_line, 1)
266 id, line = re.split(r' ', blame_line, 1)
266 267 annotate.append((ln_no, self.repository.get_changeset(id), line))
267 268 return annotate
268 269
General Comments 0
You need to be logged in to leave comments. Login now