Added hg branch parsing