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
F17816541: D7844.id17753.diff
Fri, Jul 25, 10:50 PM
F17807160: D7844.id17742.diff
Fri, Jul 25, 2:37 PM
F17806933: D7844.diff
Fri, Jul 25, 2:22 PM
Unknown Object (File)
Jun 4 2025, 8:00 AM
Unknown Object (File)
Jun 3 2025, 3:30 AM
Unknown Object (File)
Apr 24 2025, 3:52 AM
Unknown Object (File)
Apr 24 2025, 3:18 AM
Unknown Object (File)
Apr 13 2025, 5:27 AM
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

Lint
Lint Skipped
Unit
Tests Skipped