Mercurial > hg
changeset 11174:ba78a1bfbfd9
rollback: fix off-by-one in message
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 13 May 2010 17:36:45 -0500 |
parents | 5b48d819d5f9 |
children | 39e7f14a8286 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu May 13 17:24:21 2010 -0500 +++ b/mercurial/localrepo.py Thu May 13 17:36:45 2010 -0500 @@ -623,10 +623,10 @@ if len(args) >= 3 and self.ui.verbose: desc = _("rolling back to revision %s" " (undo %s: %s)\n") % ( - args[0], args[1], args[2]) + int(args[0]) - 1, args[1], args[2]) elif len(args) >= 2: desc = _("rolling back to revision %s (undo %s)\n") % ( - args[0], args[1]) + int(args[0]) - 1, args[1]) except IOError: desc = _("rolling back unknown transaction\n") self.ui.status(desc)