diff -r d3e2d39b97ea -r 2df983125d37 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Tue Jan 10 06:59:49 2017 +0800 +++ b/mercurial/debugcommands.py Thu Jan 05 17:16:07 2017 +0000 @@ -445,7 +445,7 @@ raise error.CommandError('debugdata', _('invalid arguments')) r = cmdutil.openrevlog(repo, 'debugdata', file_, opts) try: - ui.write(r.revision(r.lookup(rev))) + ui.write(r.revision(r.lookup(rev), raw=True)) except KeyError: raise error.Abort(_('invalid revision identifier %s') % rev)