# HG changeset patch # User Martin von Zweigbergk # Date 2018-04-06 18:26:50 # Node ID 9966f44ecab45794f33f2793ad4542e5c54320f6 # Parent 810413b745ff94685129a6ebd48a4db59cd62ec3 debugwhyunstable: add support for revsets Differential Revision: https://phab.mercurial-scm.org/D3166 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -2547,7 +2547,7 @@ def debugwalk(ui, repo, *pats, **opts): @command('debugwhyunstable', [], _('REV')) def debugwhyunstable(ui, repo, rev): """explain instabilities of a changeset""" - for entry in obsutil.whyunstable(repo, repo[rev]): + for entry in obsutil.whyunstable(repo, scmutil.revsingle(repo, rev)): dnodes = '' if entry.get('divergentnodes'): dnodes = ' '.join('%s (%s)' % (ctx.hex(), ctx.phasestr())