diff tests/test-dispatch @ 4561:8044be585b91

dispatch: restore a dropped shlex import Add test-dispatch as a place for command parsing and dispatch tests.
author Brendan Cully <brendan@kublai.com>
date Tue, 12 Jun 2007 13:21:42 -0700
parents
children 6fc26982f203
line wrap: on
line diff
new file mode 100755
--- /dev/null
+++ b/tests/test-dispatch
@@ -0,0 +1,15 @@
+#!/bin/sh
+# test command parsing and dispatch
+
+hg init a
+cd a
+echo a > a
+hg ci -Ama -d '0 0'
+
+echo '% [defaults]'
+hg cat a
+cat > $HGRCPATH <<EOF
+[defaults]
+cat = -v
+EOF
+hg cat a