]> arthur.barton.de Git - bup.git/commit
Use CatPipe, not show, in git_commit_dates()
authorRob Browning <rlb@defaultvalue.org>
Sun, 18 May 2014 05:51:34 +0000 (00:51 -0500)
committerRob Browning <rlb@defaultvalue.org>
Wed, 21 May 2014 16:45:21 +0000 (11:45 -0500)
commitb93080906435b8e2ff2b23dd1ee37de4bf7faeb0
tree7b273ab40c75c2ad888635a47d1043177f6f8e6f
parent9dfd9236ce862e32d4d45d3e1f18048db48b2874
Use CatPipe, not show, in git_commit_dates()

Import the commit parser from the experimental bup-get branch and use
it along with CatPipe to produce the git commit dates in
git_commit_dates().

This appears to resolve the performance problem with real archives
that was introduced by the use of "git show -s --pretty=format:%ct
..." (cf. 00ba9fb811e71bb6182b9379461bc6b493e3b7a4), and is still much
faster than 0.25 for at least a 1000 branch synthetic repository here.

Thanks to Gabriel Filion <gabster@lelutin.ca> for reporting the
problem, and to him and Patrick Rouleau <prouleau72@gmail.com> for
helping test the solution.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py
lib/bup/t/tgit.py