diff -r ba0fb0e33c3a -r 02fdb8c018aa mercurial/commands.py --- a/mercurial/commands.py Tue Dec 26 22:54:45 2017 +0530 +++ b/mercurial/commands.py Wed Dec 27 00:14:00 2017 +0530 @@ -5528,7 +5528,11 @@ # if we defined a bookmark, we have to remember the original name brev = rev - rev = scmutil.revsingle(repo, rev, rev).rev() + repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn') + ctx = scmutil.revsingle(repo, rev, rev) + rev = ctx.rev() + if ctx.hidden(): + ui.warn(_("updating to a hidden changeset %s\n") % ctx.hex()[:12]) repo.ui.setconfig('ui', 'forcemerge', tool, 'update')