Use commit branch/tag (when available) instead of guessing

See 31d1b53694978762a7d9b10abe3c760187a3b67d commit to find out more about branch/tag support in SVN repositories.