mercurial/debugcommands.py
changeset 37396 9966f44ecab4
parent 37350 e32dfff71529
child 37483 61e405fb6372
--- a/mercurial/debugcommands.py	Fri Apr 06 10:46:24 2018 -0700
+++ b/mercurial/debugcommands.py	Fri Apr 06 11:26:50 2018 -0700
@@ -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())