Using bzrlib is probably easier than parsing the bzr log output: from bzrlib.bzrdir import BzrDir revision = BzrDir.open(pathToBranchDir).open_branch().revno() I'll have a go at hacking on this tomorrow. ** Changed in: bughelper (upstream) Assignee: (unassigned) => Dean Sas -- RFE: print bughelper version https://launchpad.net/bugs/79231