# HG changeset patch # User Brendan Cully # Date 1181679702 25200 # Node ID 8044be585b91a9bfe70a1891e246aef918d285d9 # Parent 80d35fba99a87976095553bd8b8b171c75f1f79a dispatch: restore a dropped shlex import Add test-dispatch as a place for command parsing and dispatch tests. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -7,9 +7,9 @@ from node import * from i18n import _ -import os, sys, mdiff, bdiff, util, templater, patch, commands -import atexit, signal, pdb, hg, lock, fancyopts, traceback -import socket, revlog, version, extensions, errno +import os, sys, atexit, signal, pdb, traceback, socket, errno, shlex +import mdiff, bdiff, util, templater, patch, commands, hg, lock +import fancyopts, revlog, version, extensions revrangesep = ':' diff --git a/tests/test-dispatch b/tests/test-dispatch 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 <