mercurial/debugcommands.py
changeset 37396 9966f44ecab4
parent 37350 e32dfff71529
child 37483 61e405fb6372
equal deleted inserted replaced
37395:810413b745ff 37396:9966f44ecab4
  2545         ui.write("%s\n" % line.rstrip())
  2545         ui.write("%s\n" % line.rstrip())
  2546 
  2546 
  2547 @command('debugwhyunstable', [], _('REV'))
  2547 @command('debugwhyunstable', [], _('REV'))
  2548 def debugwhyunstable(ui, repo, rev):
  2548 def debugwhyunstable(ui, repo, rev):
  2549     """explain instabilities of a changeset"""
  2549     """explain instabilities of a changeset"""
  2550     for entry in obsutil.whyunstable(repo, repo[rev]):
  2550     for entry in obsutil.whyunstable(repo, scmutil.revsingle(repo, rev)):
  2551         dnodes = ''
  2551         dnodes = ''
  2552         if entry.get('divergentnodes'):
  2552         if entry.get('divergentnodes'):
  2553             dnodes = ' '.join('%s (%s)' % (ctx.hex(), ctx.phasestr())
  2553             dnodes = ' '.join('%s (%s)' % (ctx.hex(), ctx.phasestr())
  2554                               for ctx in entry['divergentnodes']) + ' '
  2554                               for ctx in entry['divergentnodes']) + ' '
  2555         ui.write('%s: %s%s %s\n' % (entry['instability'], dnodes,
  2555         ui.write('%s: %s%s %s\n' % (entry['instability'], dnodes,