Submitter | phabricator |
---|---|
Date | Jan. 16, 2019, 12:44 p.m. |
Message ID | <e00f484964bc63addb4a5fce5670f869@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/37792/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/ancestor.py b/mercurial/ancestor.py --- a/mercurial/ancestor.py +++ b/mercurial/ancestor.py @@ -11,6 +11,7 @@ from .node import nullrev from . import ( + dagop, policy, pycompat, ) @@ -162,6 +163,9 @@ '''grow the ancestor set by adding new bases''' self.bases.update(newbases) + def basesheads(self): + return dagop.headrevs(self.bases, self.pfunc) + def removeancestorsfrom(self, revs): '''remove all ancestors of bases from the set revs (in place)''' bases = self.bases