Patchwork D3166: debugwhyunstable: add support for revsets

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 6:43 p.m.
Message ID <differential-rev-PHID-DREV-tkck3r63uxazhlkzkupc-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30452/
State Superseded
Headers show

Comments

phabricator - April 6, 2018, 6:43 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3166

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -2547,7 +2547,7 @@ 
 @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())