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)
Fri, Sep 13, 4:29 PM
Unknown Object (File)
Fri, Sep 13, 4:27 PM
Unknown Object (File)
Fri, Sep 13, 4:27 PM
Unknown Object (File)
Fri, Sep 13, 4:27 PM
Unknown Object (File)
Mon, Sep 9, 7:08 PM
Unknown Object (File)
Thu, Aug 29, 12:35 AM
Unknown Object (File)
Aug 20 2024, 5:30 AM
Unknown Object (File)
Aug 15 2024, 9:42 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

Branch
hgancestors
Lint
Lint Passed
Unit
No Test Coverage