# HG changeset patch # User Pulkit Goyal # Date 1537479968 -19800 # Node ID 7303ab86431a09f85f19606f932a645f6999ec24 # Parent e0a7cfa9323f41067d14f21ff1ffe96c631e4fbc py3: use '%d' instead of '%s' for integers Python 3 does not allow to use '%s' for integers. Differential Revision: https://phab.mercurial-scm.org/D4688 diff -r e0a7cfa9323f -r 7303ab86431a mercurial/commands.py --- a/mercurial/commands.py Fri Sep 21 03:16:38 2018 +0530 +++ b/mercurial/commands.py Fri Sep 21 03:16:08 2018 +0530 @@ -4878,10 +4878,10 @@ if node != parent: if dirty: hint = _("uncommitted changes, use --all to discard all" - " changes, or 'hg update %s' to update") % ctx.rev() + " changes, or 'hg update %d' to update") % ctx.rev() else: hint = _("use --all to revert all files," - " or 'hg update %s' to update") % ctx.rev() + " or 'hg update %d' to update") % ctx.rev() elif dirty: hint = _("uncommitted changes, use --all to discard all changes") else: