Page MenuHomePhabricator

Prevent Differential changeset HTML anchors from colliding with comment anchors
ClosedPublic

Authored by epriestley on Aug 24 2017, 8:40 PM.
Tags
None
Referenced Files
F13225964: D18465.diff
Sun, May 19, 6:33 PM
F13207909: D18465.id44360.diff
Thu, May 16, 6:10 AM
F13206679: D18465.id.diff
Wed, May 15, 3:20 PM
F13186338: D18465.diff
Sat, May 11, 3:34 AM
F13182945: D18465.diff
Fri, May 10, 5:21 AM
Unknown Object (File)
Tue, May 7, 11:27 AM
Unknown Object (File)
Tue, May 7, 6:37 AM
Unknown Object (File)
Sun, May 5, 2:35 AM
Subscribers

Details

Summary

Fixes T12970. This is easier than I expected, and appears to occur in only one place.

This prevents a change from ever generating with an anchor like #12345678, which is ambiguous because it may be a comment anchor.

Test Plan

Viewed a revision, saw new change-xxxyyyzzz anchors, clicked one, got jumped to the right place.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 24 2017, 8:52 PM
This revision was automatically updated to reflect the committed changes.

Would this break anyone's bookmarks to file locations in a diff~

Yes, but surely no one has those?

I don't know anyone that has those

tbh it sounds like something only weirdo internet experts would do