Rather than parsing the url, you could alternatively do an api call to Launchpad to get the branch object, and then traverse from there to the owning project.
Rather than parsing the url, you could alternatively do an api call to
Launchpad to get the branch object, and then traverse from there to
the owning project.