HomePhabricator

Add more redirection url patterns for gerrit urls

Authored by mmodell.

Description

Add more redirection url patterns for gerrit urls

Summary:
This corresponds to the following gerrit configuration:

[gitweb]
    url = https://git.wikimedia.org
    type = custom
    project = /r/project/${project}
    revision = /r/revision/${project};${commit}
    branch = /r/branch/${project};${branch}
    filehistory = /r/browse/${project};${branch};${file}
    linkname = gitblit
    linkDrafts = false

Test Plan:
Test on phab-01.wmflabs.org:

Browse gerrit project, redirects to callsign:

Browse a file .gitreview in project mediawiki/core on the REL1_19 branch:

Browse history for mediawiki/core branch REL1_19:

Browse to a specific commit:

Reviewers: demon

Reviewed By: demon

Projects: Gitblit-Deprecate, Diffusion, Gerrit-Migration

Maniphest Tasks: T110607

Differential Revision: https://phabricator.wikimedia.org/D68

Details

Committed
mmodellDec 1 2015, 6:03 PM
Reviewer
demon
Differential Revision
D68: Add more redirection url patterns for gerrit urls
Parents
rPHEX34e5e748c6af: Redirect gerrit repo URIs to diffusion callsigns.
Branches
Unknown
Tags
Unknown
ChangeId
None