Currently, if the most recent commit to SVN was not on the default branch, we will attempt to compute identifiers on that branch rather than the default branch. This is also true in Git, but less serious because this can only happen if the user has their checkout on that branch. I'm not entirely certain what we want the behavior here to be, but I'm fairly certain the current behavior is wrong.
<rdar://problem/70631274>
I think the correct behavior here is to always assume the default branch when no branch is specified, that way the script does not behave differently based on the state of the checkout.
Created attachment 412208 [details] Patch
After working on https://bugs.webkit.org/show_bug.cgi?id=218827, I'm quite convinced we should land this change.