Remove separate functions for getting logs from git and hg