# HG changeset patch # User Boris Feld # Date 1512376777 -3600 # Node ID 278f1feee73a3190baba3f46770ca1c119e69167 # Parent 8feef8ef8389a3b544e0a74624f1efc3a8d85d35 scmutil: improve format pattern used in nodesummaries As spotted by Yuya Nishihara, that value is an integer. diff -r 8feef8ef8389 -r 278f1feee73a mercurial/scmutil.py --- a/mercurial/scmutil.py Sat Dec 02 17:52:53 2017 -0500 +++ b/mercurial/scmutil.py Mon Dec 04 09:39:37 2017 +0100 @@ -1284,7 +1284,7 @@ if len(nodes) <= maxnumnodes or repo.ui.verbose: return ' '.join(short(h) for h in nodes) first = ' '.join(short(h) for h in nodes[:maxnumnodes]) - return _("%s and %s others") % (first, len(nodes) - maxnumnodes) + return _("%s and %d others") % (first, len(nodes) - maxnumnodes) def enforcesinglehead(repo, tr, desc): """check that no named branch has multiple heads"""