backport.pl: Minor improvements to sanitize_branch() helper.
backport.pl: Minor improvements to sanitize_branch() helper.

* tools/dist/backport.pl
  (sanitize_branch): Add a docstring.  Restore support for some input formats
    that r1541813 accidentally removed (presumably because they weren't
    documented ☺).

git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1568246 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion