Extract branch from dev-repo URL fragment
When the dev-repo field contains a URL fragment like #staging or #master,
extract it and use it as the package's branch. This allows specifying
branches in opam files rather than relying on config overrides.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>