Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 49253:a321304269cf
debugindex: move to a flexible column
Each column is now declared as a decorated function. This will make it much
simpler to add more new column in the future.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Jun 2022 00:59:44 +0200 |
parents | 61cf3d39fd9e |
children | 223d55086d7c |
comparison
equal
deleted
inserted
replaced
49252:4141951dacff | 49253:a321304269cf |
---|---|
1875 opts = pycompat.byteskwargs(opts) | 1875 opts = pycompat.byteskwargs(opts) |
1876 store = cmdutil.openstorage(repo, b'debugindex', file_, opts) | 1876 store = cmdutil.openstorage(repo, b'debugindex', file_, opts) |
1877 | 1877 |
1878 fm = ui.formatter(b'debugindex', opts) | 1878 fm = ui.formatter(b'debugindex', opts) |
1879 | 1879 |
1880 revlog = getattr(store, b'_revlog', store) | |
1881 | |
1880 return revlog_debug.debug_index( | 1882 return revlog_debug.debug_index( |
1881 ui, | 1883 ui, |
1882 repo, | 1884 repo, |
1883 formatter=fm, | 1885 formatter=fm, |
1884 revlog=store, | 1886 revlog=revlog, |
1885 full_node=ui.debugflag, | 1887 full_node=ui.debugflag, |
1886 ) | 1888 ) |
1887 | 1889 |
1888 | 1890 |
1889 @command( | 1891 @command( |