| Summary: | REGRESSION(r265601): invalid blame URL copied when `include_revision` is `false` | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||
| Component: | Tools / Tests | Assignee: | Devin Rousso <hi> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | dbates, hi, joepeck, keith_miller, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | 215440 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Devin Rousso
2020-08-24 21:57:42 PDT
Created attachment 407172 [details]
Patch
Comment on attachment 407172 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407172&action=review > Tools/CopyPermalink/Sublime Text/CopyWebKitPermalink/CopyWebKitPermalink.py:194 > + return 'https://trac.webkit.org/browser/{}/{}?{}{}{}'.format(branch, path, revision, annotate_blame, line_number) This doesn't look correct. Looks like ?&rev can be formed. Comment on attachment 407172 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407172&action=review >> Tools/CopyPermalink/Sublime Text/CopyWebKitPermalink/CopyWebKitPermalink.py:194 >> + return 'https://trac.webkit.org/browser/{}/{}?{}{}{}'.format(branch, path, revision, annotate_blame, line_number) > > This doesn't look correct. Looks like ?&rev can be formed. Yes, that was somewhat intentional. I figured this would be easier and more straightforward than adding a bunch of `if`s to determine whether to put the `?` on the `revision` or on the `annotate_blame`. AFAIK, having `?&` in a URL is valid, and it worked just fine with <https://trac.webkit.org/>. Committed r266135: <https://trac.webkit.org/changeset/266135> All reviewed patches have been landed. Closing bug and clearing flags on attachment 407172 [details]. |