# HG changeset patch # User Bryan O'Sullivan # Date 1121859785 28800 # Node ID 1e84f1014f332f7118efc7b18c55d2fa9e12a5d2 # Parent 3433b228bbb32c57cbf25e9f1bec3d66ea00cf20 Update tests to reflect walk changes. diff -r 3433b228bbb3 -r 1e84f1014f33 mercurial/commands.py --- a/mercurial/commands.py Wed Jul 20 03:37:01 2005 -0800 +++ b/mercurial/commands.py Wed Jul 20 03:43:05 2005 -0800 @@ -118,7 +118,7 @@ def make_file(repo, r, pat, node=None, total=None, seqno=None, revwidth=None, mode='wb'): - if pat == '-': + if not pat or pat == '-': if 'w' in mode: return sys.stdout else: return sys.stdin node_expander = { @@ -1098,7 +1098,9 @@ "addremove": (addremove, [], "hg addremove [FILES]"), "^annotate": (annotate, - [('r', 'rev', '', 'revision'), + [('I', 'include', [], 'include path in search'), + ('X', 'exclude', [], 'exclude path from search'), + ('r', 'rev', '', 'revision'), ('u', 'user', None, 'show user'), ('n', 'number', None, 'show revision number'), ('c', 'changeset', None, 'show changeset')], diff -r 3433b228bbb3 -r 1e84f1014f33 tests/test-help.out --- a/tests/test-help.out Wed Jul 20 03:37:01 2005 -0800 +++ b/tests/test-help.out Wed Jul 20 03:43:05 2005 -0800 @@ -33,15 +33,29 @@ status show changed files in the working directory update update or merge working directory hg add: option -h not recognized -hg add FILE... +hg add [OPTIONS] [FILES] + + -I --include + include path in search + -X --exclude + exclude path from search add the specified files on the next commit hg add: option --skjdfks not recognized -hg add FILE... +hg add [OPTIONS] [FILES] + + -I --include + include path in search + -X --exclude + exclude path from search add the specified files on the next commit hg diff [-r REV1 [-r REV2]] [FILE]... + -I --include + include path in search + -X --exclude + exclude path from search -r --rev revision