Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 30743:2df983125d37
revlog: add 'raw' argument to revision and _addrevision
This patch introduces a new 'raw' argument (defaults to False) to revlog's
revision() and _addrevision() methods.
When the 'raw' argument is set to True, it indicates the revision data should be
handled as raw data by the flagprocessor.
Note: Given revlog.addgroup() calls are restricted to changegroup generation, we
can always set raw to True when calling revlog._addrevision() from
revlog.addgroup().
author | Remi Chaintron <remi@fb.com> |
---|---|
date | Thu, 05 Jan 2017 17:16:07 +0000 |
parents | 342d0cb4f446 |
children | eaa5607132a2 |
line wrap: on
line diff
--- 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)