mercurial/commands.py
changeset 27385 20e7de6205e7
parent 27377 d1c998d7b103
child 27388 4a921d66617f
--- a/mercurial/commands.py	Wed Dec 16 17:17:12 2015 -0600
+++ b/mercurial/commands.py	Mon Dec 14 11:19:48 2015 -0800
@@ -6493,6 +6493,18 @@
     if draft or secret:
         ui.status(_('phases: %s\n') % ', '.join(t))
 
+    if obsolete.isenabled(repo, obsolete.createmarkersopt):
+        for trouble in ("unstable", "divergent", "bumped"):
+            numtrouble = len(repo.revs(trouble + "()"))
+            # We write all the possibilities to ease translation
+            troublemsg = {
+               "unstable": _("unstable: %d changeset"),
+               "divergent": _("divergent: %d changeset"),
+               "bumped": _("bumped: %d changeset"),
+            }
+            if numtrouble > 0:
+                ui.status(troublemsg[trouble] % numtrouble + "\n")
+
     cmdutil.summaryhooks(ui, repo)
 
     if opts.get('remote'):