HomePhorge

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

Description

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

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.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7844

Details

Provenance
epriestleyAuthored on Dec 27 2013, 1:16 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP9f38aaa5dec4: Add "raw author name" and "raw committer name" as Herald fields for commit…
Branches
Unknown
Tags
Unknown

Event Timeline