Update tests to reflect walk changes.
--- 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')],
--- 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