Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 51080:2d30d1ba0371
debugdeltachain: add a parameter to display all info
This will be useful with the next changeset that change the defaul output to display the minimum amount of information.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 19 Sep 2023 03:00:44 +0200 |
parents | 752e380c5702 |
children | 786b6225793a |
comparison
equal
deleted
inserted
replaced
51079:5b5cb6b833b0 | 51080:2d30d1ba0371 |
---|---|
753 [], | 753 [], |
754 _('restrict processing to these revlog revisions'), | 754 _('restrict processing to these revlog revisions'), |
755 ), | 755 ), |
756 ( | 756 ( |
757 b'', | 757 b'', |
758 b'all-info', | |
759 True, | |
760 _('compute all information unless specified otherwise'), | |
761 ), | |
762 ( | |
763 b'', | |
758 b'size-info', | 764 b'size-info', |
759 True, | 765 None, |
760 _('compute information related to deltas size'), | 766 _('compute information related to deltas size'), |
761 ), | 767 ), |
762 ( | 768 ( |
763 b'', | 769 b'', |
764 b'dist-info', | 770 b'dist-info', |
765 True, | 771 None, |
766 _('compute information related to base distance'), | 772 _('compute information related to base distance'), |
767 ), | 773 ), |
768 ( | 774 ( |
769 b'', | 775 b'', |
770 b'sparse-info', | 776 b'sparse-info', |
771 True, | 777 None, |
772 _('compute information related to sparse read'), | 778 _('compute information related to sparse read'), |
773 ), | 779 ), |
774 ] | 780 ] |
775 + cmdutil.debugrevlogopts | 781 + cmdutil.debugrevlogopts |
776 + cmdutil.formatteropts, | 782 + cmdutil.formatteropts, |
866 revs = None | 872 revs = None |
867 revs_opt = opts.pop('rev', []) | 873 revs_opt = opts.pop('rev', []) |
868 if revs_opt: | 874 if revs_opt: |
869 revs = [int(r) for r in revs_opt] | 875 revs = [int(r) for r in revs_opt] |
870 | 876 |
871 size_info = opts.pop('size_info', True) | 877 all_info = opts.pop('all_info', True) |
872 dist_info = opts.pop('dist_info', True) | 878 size_info = opts.pop('size_info', None) |
873 sparse_info = opts.pop('sparse_info', True) | 879 if size_info is None: |
880 size_info = all_info | |
881 dist_info = opts.pop('dist_info', None) | |
882 if dist_info is None: | |
883 dist_info = all_info | |
884 sparse_info = opts.pop('sparse_info', None) | |
885 if sparse_info is None: | |
886 sparse_info = all_info | |
874 | 887 |
875 revlog = cmdutil.openrevlog( | 888 revlog = cmdutil.openrevlog( |
876 repo, b'debugdeltachain', file_, pycompat.byteskwargs(opts) | 889 repo, b'debugdeltachain', file_, pycompat.byteskwargs(opts) |
877 ) | 890 ) |
878 fm = ui.formatter(b'debugdeltachain', pycompat.byteskwargs(opts)) | 891 fm = ui.formatter(b'debugdeltachain', pycompat.byteskwargs(opts)) |