How to get the revision history of a branch with bzrlib

Posted by David Planella on Ask Ubuntu See other posts from Ask Ubuntu or by David Planella
Published on 2013-07-02T07:14:29Z Indexed on 2013/07/02 11:15 UTC
Read the original article Hit count: 425

Filed under:
|
|
|

I'm trying to get a list of committers to a bzr branch. I know I can get it through the command line with something along these lines:

bzr log -n0 | grep committer | sed -e 's/^[[:space:]]*committer: //' | uniq

However, I'd like to get that list programmatically with bzrlib. After having looked at the bzrlib documentation, I can't manage to find out how I would even get the full list of revisions from my branch.

Any hints on how to get the full history of revisions from a branch with bzrlib, or ultimately, the list of committers?

© Ask Ubuntu or respective owner

Related posts about python

Related posts about launchpad