mercurial/commands.py
changeset 27722 edd2615ad226
parent 27710 ed8012a0b60a
child 27724 c36fa631cb6e
equal deleted inserted replaced
27721:e4b512bb6386 27722:edd2615ad226
  6536     if obsolete.isenabled(repo, obsolete.createmarkersopt):
  6536     if obsolete.isenabled(repo, obsolete.createmarkersopt):
  6537         for trouble in ("unstable", "divergent", "bumped"):
  6537         for trouble in ("unstable", "divergent", "bumped"):
  6538             numtrouble = len(repo.revs(trouble + "()"))
  6538             numtrouble = len(repo.revs(trouble + "()"))
  6539             # We write all the possibilities to ease translation
  6539             # We write all the possibilities to ease translation
  6540             troublemsg = {
  6540             troublemsg = {
  6541                "unstable": _("unstable: %d changeset"),
  6541                "unstable": _("unstable: %d changesets"),
  6542                "divergent": _("divergent: %d changeset"),
  6542                "divergent": _("divergent: %d changesets"),
  6543                "bumped": _("bumped: %d changeset"),
  6543                "bumped": _("bumped: %d changesets"),
  6544             }
  6544             }
  6545             if numtrouble > 0:
  6545             if numtrouble > 0:
  6546                 ui.status(troublemsg[trouble] % numtrouble + "\n")
  6546                 ui.status(troublemsg[trouble] % numtrouble + "\n")
  6547 
  6547 
  6548     cmdutil.summaryhooks(ui, repo)
  6548     cmdutil.summaryhooks(ui, repo)