Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 50579:720a23405fe9
debug: update usage strings of debugignore and debugnodemap
Multiple files can be specified for debugignore.
debugnodemap does not take a revision argument.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 31 May 2023 12:01:25 -0300 |
parents | 003418163195 |
children | 9dcb00842769 |
comparison
equal
deleted
inserted
replaced
50578:003418163195 | 50579:720a23405fe9 |
---|---|
1843 if bundletype not in bundle2.bundletypes: | 1843 if bundletype not in bundle2.bundletypes: |
1844 raise error.Abort(_(b'unknown bundle type specified with --type')) | 1844 raise error.Abort(_(b'unknown bundle type specified with --type')) |
1845 bundle2.writebundle(ui, bundle, bundlepath, bundletype) | 1845 bundle2.writebundle(ui, bundle, bundlepath, bundletype) |
1846 | 1846 |
1847 | 1847 |
1848 @command(b'debugignore', [], b'[FILE]') | 1848 @command(b'debugignore', [], b'[FILE]...') |
1849 def debugignore(ui, repo, *files, **opts): | 1849 def debugignore(ui, repo, *files, **opts): |
1850 """display the combined ignore pattern and information about ignored files | 1850 """display the combined ignore pattern and information about ignored files |
1851 | 1851 |
1852 With no argument display the combined ignore pattern. | 1852 With no argument display the combined ignore pattern. |
1853 | 1853 |
2626 False, | 2626 False, |
2627 _(b'display the on disk meta data for the nodemap'), | 2627 _(b'display the on disk meta data for the nodemap'), |
2628 ), | 2628 ), |
2629 ] | 2629 ] |
2630 ), | 2630 ), |
2631 _(b'-c|-m|FILE REV'), | 2631 _(b'-c|-m|FILE'), |
2632 ) | 2632 ) |
2633 def debugnodemap(ui, repo, file_=None, **opts): | 2633 def debugnodemap(ui, repo, file_=None, **opts): |
2634 """write and inspect on disk nodemap""" | 2634 """write and inspect on disk nodemap""" |
2635 if opts.get('changelog') or opts.get('manifest') or opts.get('dir'): | 2635 if opts.get('changelog') or opts.get('manifest') or opts.get('dir'): |
2636 if file_ is not None: | 2636 if file_ is not None: |