Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 42773:127d57e950e0
rawdata: update callers in debugcommands
We update callers incrementally because this help bisecting failures. This was
useful during development, so we expect it might be useful again in the future.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 07 Aug 2019 20:10:08 +0200 |
parents | 7f1df7019497 |
children | cf2b765cecd7 |
comparison
equal
deleted
inserted
replaced
42772:5c2e8a661418 | 42773:127d57e950e0 |
---|---|
560 file_, rev = None, file_ | 560 file_, rev = None, file_ |
561 elif rev is None: | 561 elif rev is None: |
562 raise error.CommandError('debugdata', _('invalid arguments')) | 562 raise error.CommandError('debugdata', _('invalid arguments')) |
563 r = cmdutil.openstorage(repo, 'debugdata', file_, opts) | 563 r = cmdutil.openstorage(repo, 'debugdata', file_, opts) |
564 try: | 564 try: |
565 ui.write(r.revision(r.lookup(rev), raw=True)) | 565 ui.write(r.rawdata(r.lookup(rev))) |
566 except KeyError: | 566 except KeyError: |
567 raise error.Abort(_('invalid revision identifier %s') % rev) | 567 raise error.Abort(_('invalid revision identifier %s') % rev) |
568 | 568 |
569 @command('debugdate', | 569 @command('debugdate', |
570 [('e', 'extended', None, _('try extended date formats'))], | 570 [('e', 'extended', None, _('try extended date formats'))], |