Page MenuHomePhabricator

Allow revisions to revert commits and one another, and commits to revert revisions
ClosedPublic

Authored by epriestley on Jan 31 2018, 8:27 PM.
Tags
None
Referenced Files
F18845057: D18978.id.diff
Wed, Oct 29, 9:25 AM
F18785418: D18978.diff
Tue, Oct 14, 2:55 AM
F18756236: D18978.id.diff
Oct 5 2025, 10:21 AM
F18702407: D18978.id45512.diff
Sep 28 2025, 12:00 AM
F18678097: D18978.diff
Sep 25 2025, 10:20 PM
F18639790: D18978.diff
Sep 17 2025, 2:49 PM
F18627879: D18978.diff
Sep 16 2025, 5:00 AM
F18619508: D18978.diff
Sep 15 2025, 2:40 AM
Subscribers
None

Details

Summary

Ref T13057. This makes "reverts" syntax more visible and useful. In particular, you can now Reverts Dxx in a revision or commit, and Reverts <hash> from a revision.

When you do, the corresponding object will get a more-visible cross-reference marker in its timeline:

Screen Shot 2018-01-31 at 12.25.33 PM.png (46×360 px, 9 KB)

From here, we can look at surfacing revert information more heavily, since we can now query it on revision/commit pages via edges.

Test Plan

Used "reverts <hash>" and "reverts <revision>" in Differential and Diffusion, got sensible results in the timeline.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable