Homec4science

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

Authored by epriestley <git@epriestley.com> on Dec 27 2013, 22:16.

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

Committed
epriestley <git@epriestley.com>Dec 27 2013, 22:16
Pushed
aubortJan 31 2017, 17:16
Parents
rPH9f38aaa5dec4: Add "raw author name" and "raw committer name" as Herald fields for commit…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHce632d64906b: Use `ancestors(x)` instead of `0::x` in Mercurial history queries (authored by epriestley <git@epriestley.com>).Dec 27 2013, 22:16