# HG changeset patch # User Matt Harbison # Date 1452564029 18000 # Node ID edd2615ad226c14f6904fc1738c3dc36431db223 # Parent e4b512bb6386f73acb3f04918aa2ffc07eb78f73 summary: print unstable, bumped and divergent as unconditionally plural This aligns with the unconditional plural output for the update line contents, as well as the incoming/outgoing bookmarks line. It also matches the message in evolve's summary hook as of 4f83b2d2d20d. (Though I thought this was removed recently?) diff -r e4b512bb6386 -r edd2615ad226 mercurial/commands.py --- a/mercurial/commands.py Mon Jan 11 18:16:38 2016 -0800 +++ b/mercurial/commands.py Mon Jan 11 21:00:29 2016 -0500 @@ -6538,9 +6538,9 @@ 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"), + "unstable": _("unstable: %d changesets"), + "divergent": _("divergent: %d changesets"), + "bumped": _("bumped: %d changesets"), } if numtrouble > 0: ui.status(troublemsg[trouble] % numtrouble + "\n") diff -r e4b512bb6386 -r edd2615ad226 tests/test-obsolete.t --- a/tests/test-obsolete.t Mon Jan 11 18:16:38 2016 -0800 +++ b/tests/test-obsolete.t Mon Jan 11 21:00:29 2016 -0500 @@ -245,7 +245,7 @@ commit: (clean) update: 1 new changesets, 2 branch heads (merge) phases: 1 draft - bumped: 1 changeset + bumped: 1 changesets $ hg up '5^' 0 files updated, 0 files merged, 1 files removed, 0 files unresolved $ hg revert -ar 5 @@ -480,7 +480,7 @@ commit: (clean) update: 1 new changesets, 2 branch heads (merge) phases: 3 draft - unstable: 1 changeset + unstable: 1 changesets $ hg log -G -r '::unstable()' @ 5:cda648ca50f5 (draft) [tip ] add original_e |