Show More
@@ -3679,7 +3679,7 b' def grep(ui, repo, pattern, *pats, **opt' | |||||
3679 |
|
3679 | |||
3680 | wopts = logcmdutil.walkopts( |
|
3680 | wopts = logcmdutil.walkopts( | |
3681 | pats=pats, |
|
3681 | pats=pats, | |
3682 | opts=opts, |
|
3682 | opts=pycompat.byteskwargs(opts), | |
3683 | revspec=opts['rev'], |
|
3683 | revspec=opts['rev'], | |
3684 | include_pats=opts['include'], |
|
3684 | include_pats=opts['include'], | |
3685 | exclude_pats=opts['exclude'], |
|
3685 | exclude_pats=opts['exclude'], |
@@ -525,6 +525,23 b' Test wdir' | |||||
525 | port2:2147483647:deport |
|
525 | port2:2147483647:deport | |
526 | port2:2147483647:wport |
|
526 | port2:2147483647:wport | |
527 |
|
527 | |||
|
528 | Testing include/exclude | |||
|
529 | ||||
|
530 | $ hg cp port tort | |||
|
531 | $ hg grep port -X tort | |||
|
532 | port:export | |||
|
533 | port:vaportight | |||
|
534 | port:import/export | |||
|
535 | port2:export | |||
|
536 | port2:vaportight | |||
|
537 | port2:import/export | |||
|
538 | port2:deport | |||
|
539 | port2:wport | |||
|
540 | $ hg grep port -I tort | |||
|
541 | tort:export | |||
|
542 | tort:vaportight | |||
|
543 | tort:import/export | |||
|
544 | ||||
528 | $ cd .. |
|
545 | $ cd .. | |
529 | $ hg init t2 |
|
546 | $ hg init t2 | |
530 | $ cd t2 |
|
547 | $ cd t2 |
General Comments 0
You need to be logged in to leave comments.
Login now