Mercurial > hg-stable
changeset 37005:a72198790e15
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
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 19 Jan 2018 16:52:56 +0100 |
parents | 407934a97bc7 |
children | 2987726085c6 |
files | mercurial/destutil.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/destutil.py Fri Jan 19 16:52:02 2018 +0100 +++ b/mercurial/destutil.py Fri Jan 19 16:52:56 2018 +0100 @@ -13,6 +13,7 @@ error, obsutil, scmutil, + stack ) def _destupdateobs(repo, clean): @@ -355,9 +356,7 @@ 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):