Mercurial > public > mercurial-scm > hg-stable
comparison hgext/githelp.py @ 44942:94f227baa76f
githelp: add some minimal help for pickaxe functionality
Due to a conversation in work chat, I realized this is actually pretty
well-hidden in Mercurial.
Differential Revision: https://phab.mercurial-scm.org/D8590
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 28 May 2020 09:51:13 -0400 |
parents | ca5bd34c597b |
children | 89a2afe31e82 |
comparison
equal
deleted
inserted
replaced
44941:be3e85cf8f4d | 44942:94f227baa76f |
---|---|
626 (b'', b'format', b'', b''), | 626 (b'', b'format', b'', b''), |
627 (b'', b'oneline', None, b''), | 627 (b'', b'oneline', None, b''), |
628 (b'', b'stat', None, b''), | 628 (b'', b'stat', None, b''), |
629 (b'', b'graph', None, b''), | 629 (b'', b'graph', None, b''), |
630 (b'p', b'patch', None, b''), | 630 (b'p', b'patch', None, b''), |
631 ] | 631 (b'G', b'grep-diff', b'', b''), |
632 args, opts = parseoptions(ui, cmdoptions, args) | 632 (b'S', b'pickaxe-regex', b'', b''), |
633 ] | |
634 args, opts = parseoptions(ui, cmdoptions, args) | |
635 grep_pat = opts.get(b'grep_diff') or opts.get(b'pickaxe_regex') | |
636 if grep_pat: | |
637 cmd = Command(b'grep') | |
638 cmd[b'--diff'] = grep_pat | |
639 ui.status(b'%s\n' % bytes(cmd)) | |
640 return | |
641 | |
633 ui.status( | 642 ui.status( |
634 _( | 643 _( |
635 b'note: -v prints the entire commit message like Git does. To ' | 644 b'note: -v prints the entire commit message like Git does. To ' |
636 b'print just the first line, drop the -v.\n\n' | 645 b'print just the first line, drop the -v.\n\n' |
637 ) | 646 ) |