git-svn: bugfix and optimize the 'log' command