Page MenuHomePhabricator

Use `ancestors(x)` instead of `0::x` in Mercurial history queries
ClosedPublic

Authored by epriestley on Dec 27 2013, 4:42 PM.
Tags
None
Referenced Files
F13284571: D7844.diff
Mon, Jun 3, 6:35 AM
F13210320: D7844.id.diff
May 17 2024, 4:43 AM
Unknown Object (File)
Apr 24 2024, 9:50 PM
Unknown Object (File)
Apr 21 2024, 1:49 PM
Unknown Object (File)
Apr 20 2024, 8:51 AM
Unknown Object (File)
Apr 17 2024, 2:58 PM
Unknown Object (File)
Apr 10 2024, 5:27 PM
Unknown Object (File)
Mar 19 2024, 7:32 PM
Subscribers

Details

Summary

If 0 isn't an ancestor of the current branch, the 0::x construction fails. This is uncommon, but not wildly unreasonable. The ancestors() construction is simpler anyway.

Test Plan

Viewed some hg repos locally (change history, file history) without anything suspicious cropping up.

Diff Detail

Branch
hgancestors
Lint
Lint Passed
Unit
No Test Coverage