[Bug 5374] New: revsets: add around(set, depth) and extend ancestors(set[, depth]) / descendants(set[, depth])
bugzilla at mercurial-scm.org
bugzilla at mercurial-scm.org
Tue Sep 20 20:25:11 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5374
Bug ID: 5374
Summary: revsets: add around(set, depth) and extend
ancestors(set[, depth]) / descendants(set[, depth])
Product: Mercurial
Version: unspecified
Hardware: PC
OS: Windows
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: timeless at gmail.com
CC: mercurial-devel at selenic.com
When investigating (hg log -G, hg bisect, ...) it's common to have a sense of
what an interesting commit is, but want to see what's around it (ancestors to
some depth, descendants to some depth).
We propose to add:
around(set, depth) -- which will include all* changesets which are
ancestors/descendants of a changeset in set
and add an optional argument depth to ancestors(set) and descendants(set) as:
ancestors(set[, depth]) -- will include depth levels of ancestors of changesets
in set
descendants(set[, depth]) -- will include depth levels of descendants of
changesets in set
ancestors(set, 0) == set
descendants(set, 0) == set
around(set, 0) == set
around(set, 1) = ancestors(set, 1) + descendants(set, 1)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list