Ended up using this script which does exactly what I want. Actually it was written by the same guy who built ftploy but because I had access to the script I was able to determine which branch got deployed. By the way I discovered that the ftploy roadmap includes being able to Select Branch for Bitbucket projects.