D3166: debugwhyunstable: add support for revsets

2018-04-06 Thread martinvonz (Martin von Zweigbergk)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9966f44ecab4: debugwhyunstable: add support for revsets 
(authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3166?vs=7793=7798

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

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS

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())



To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D3166: debugwhyunstable: add support for revsets

2018-04-06 Thread martinvonz (Martin von Zweigbergk)
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

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())



To: martinvonz, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel