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
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
Unknown Object (File)
Mar 13 2025, 6:53 AM
Unknown Object (File)
Mar 9 2025, 6:17 AM
Unknown Object (File)
Feb 23 2025, 10:13 PM
Unknown Object (File)
Feb 8 2025, 1:42 AM
Unknown Object (File)
Feb 7 2025, 9:04 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

Lint
Lint Skipped
Unit
Tests Skipped