view tests/test-help.t @ 1092:3799bf885c1d

compat: use newer read_pkt_refs from dulwich if possible Beginning with dulwich 0.18, it now supports reporting the symrefs so we no longer need to monkey patch (will require future patches to use the new code, though).
author Sean Farley <sean@farley.io>
date Mon, 27 Nov 2017 17:45:51 -0500
parents 00afe8290cd4
children
line wrap: on
line source

Tests that the various help files are properly registered

Load commonly used test logic
  $ . "$TESTDIR/testutil"

  $ hg help | grep 'git' | sed 's/  */ /g'
   hggit push and pull from a Git server
   git Working with Git Repositories

Mercurial 3.7+ uses single quotes
  $ hg help hggit | grep 'help git' | sed "s/'/\"/g"
  For more information and instructions, see "hg help git"
  $ hg help git | grep 'Working with Git Repositories'
  Working with Git Repositories