Use git (rather than bzr) commands to determine the branch name and revision number (in the form of a SHA-1 commit hash).