Mercurial > hg
view tests/test-dispatch @ 8259:98acfd1d2b08
ui: replace regexp pattern with sequence of choices
Use ampersands (&) to delineate the response char in each choice.
ui.prompt() responses are now explicitly case insensitive. GUIs
that subclass ui can generate dialogs from the full choice names.
author | Steve Borho <steve@borho.org> |
---|---|
date | Thu, 30 Apr 2009 10:15:32 -0500 |
parents | 6c82beaaa11a |
children | c88c8d59979f |
line wrap: on
line source
#!/bin/sh # test command parsing and dispatch "$TESTDIR/hghave" no-outer-repo || exit 80 hg init a cd a echo a > a hg ci -Ama echo "# missing arg" hg cat echo '% [defaults]' hg cat a cat >> $HGRCPATH <<EOF [defaults] cat = -v EOF hg cat a echo '% no repo' cd .. hg cat exit 0