Mercurial > public > mercurial-scm > hg
comparison hgext/extdiff.py @ 40801:97190b0bb81a stable
extdiff: register the configuration generated commands with a help category
Otherwise, 'extdiff' shows up under file management and the rest of the commands
are at the bottom under 'Uncategorized'.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 03 Dec 2018 20:59:48 -0500 |
parents | c303d65d2e34 |
children | cb372d09d30a |
comparison
equal
deleted
inserted
replaced
40791:6f679f25fd4d | 40801:97190b0bb81a |
---|---|
427 args = ui.config('diff-tools', cmd+'.diffargs') or \ | 427 args = ui.config('diff-tools', cmd+'.diffargs') or \ |
428 ui.config('merge-tools', cmd+'.diffargs') | 428 ui.config('merge-tools', cmd+'.diffargs') |
429 if args: | 429 if args: |
430 cmdline += ' ' + args | 430 cmdline += ' ' + args |
431 command(cmd, extdiffopts[:], _('hg %s [OPTION]... [FILE]...') % cmd, | 431 command(cmd, extdiffopts[:], _('hg %s [OPTION]... [FILE]...') % cmd, |
432 helpcategory=command.CATEGORY_FILE_CONTENTS, | |
432 inferrepo=True)(savedcmd(path, cmdline)) | 433 inferrepo=True)(savedcmd(path, cmdline)) |
433 | 434 |
434 # tell hggettext to extract docstrings from these functions: | 435 # tell hggettext to extract docstrings from these functions: |
435 i18nfunctions = [savedcmd] | 436 i18nfunctions = [savedcmd] |