Added current branch name to generated revision info

Code by Shauren