Fix parent commit detection for SVN repositories with sub-path

See https://secure.phabricator.com/T6537
Merge branch 'T6537-improved-parent-commit-detection'

* T6537-improved-parent-commit-detection:
  Fix parent commit detection for SVN repositories with sub-path