Merge lp:~rpadovani/launchpad/link-revision-merged-mp into lp:launchpad
Proposed by
Riccardo Padovani
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 17681 | ||||
Proposed branch: | lp:~rpadovani/launchpad/link-revision-merged-mp | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
208 lines (+66/-1) 11 files modified
lib/lp/code/browser/branchmergeproposal.py (+6/-0) lib/lp/code/browser/tests/test_branchmergeproposal.py (+14/-0) lib/lp/code/interfaces/branch.py (+3/-0) lib/lp/code/interfaces/gitref.py (+3/-0) lib/lp/code/interfaces/gitrepository.py (+3/-0) lib/lp/code/model/branch.py (+5/-0) lib/lp/code/model/gitref.py (+4/-0) lib/lp/code/model/gitrepository.py (+5/-0) lib/lp/code/model/tests/test_branch.py (+10/-0) lib/lp/code/model/tests/test_gitrepository.py (+9/-0) lib/lp/code/templates/branchmergeproposal-link-summary.pt (+4/-1) |
||||
To merge this branch: | bzr merge lp:~rpadovani/launchpad/link-revision-merged-mp | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Kit Randel (community) | Needs Fixing | ||
Review via email: mp+264654@code.launchpad.net |
Commit message
Add link to the merged revision in the summary of merge proposal pages.
Description of the change
Summary
Fix bug #892259
"Merged into lp:pkgme at revision 86". "Merged" is a link; "lp:pkgme" is a link, but "revision 86" is not.
Proposed fix
Add link to the revision
Pre-implementation notes
My first patch to lp itself :-)
Implementation details
Create a new method in IGitRepository and IBranchRepository to create url to a commit/revision in the branch.
Use it to create the property for the template
Tests
1 test to check the html and 2 tests to check the new method
Demo and Q/A
Just run it locally and go on a summary of a branch merged in another branch
To post a comment you must log in.
Hi Riccardo, thanks for the patch!
This doesn't seem quite right however - currently this creates a link to code.launchpad. dev/project/ branch/ revno whereas I think we need (in the bazaar case), bazaar. launchpad. net/[project, ~user/project] /branch/ revision/ revno