Fix generated links for DiffCommit resources
Review Request #7132 — Created March 28, 2015 and submitted
Fix generated links for DiffCommit resources
Previously, the generated links for the
DiffCommitResourceand
DraftDiffCommitResourcewere being overridden by the resources for
the parentDiffResourceorDraftDiffResource, respectively. Now,
only thefileslink is taken from the parent resource and the other
links are not overriden
Ran unit test.
Checked the links of a
DiffCommitResourceand saw that they were
correct.
- Commit:
-
f7ab76cdcae71a641e9aa495c72428c8860d46cd56f2612d9f9a0fa2bddb5c34d349cfda6a328f43
- Diff:
-
Revision 2 (+12 -13)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/diff_commit.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/diff_commit.py
- Change Summary:
-
Also generate link correctly for drafts.
- Commit:
-
56f2612d9f9a0fa2bddb5c34d349cfda6a328f436ded1ed4626e8a88fdb8ed1a72ca473aa8d1758a
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/diff_commit.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/diff_commit.py