# HG changeset patch # User Boris Feld # Date 2018-01-19 15:52:56 # Node ID a72198790e15329d6b4f1210ca48afa080446135 # Parent 407934a97bc78e9ab3feb3349ae1a458b07b17cd show: use the new stack definition for show stack Now that we have a common stack definition, use it in the hg show stack command. Differential Revision: https://phab.mercurial-scm.org/D2397 diff --git a/mercurial/destutil.py b/mercurial/destutil.py --- a/mercurial/destutil.py +++ b/mercurial/destutil.py @@ -13,6 +13,7 @@ from . import ( error, obsutil, scmutil, + stack ) def _destupdateobs(repo, clean): @@ -355,9 +356,7 @@ def desthistedit(ui, repo): return None def stackbase(ui, repo): - # The histedit default base stops at public changesets, branchpoints, - # and merges, which is exactly what we want for a stack. - revs = scmutil.revrange(repo, [histeditdefaultrevset]) + revs = stack.getstack(repo) return revs.last() if revs else None def _statusotherbook(ui, repo):