changeset 736:1e84f1014f33

Update tests to reflect walk changes.
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 20 Jul 2005 03:43:05 -0800
parents 3433b228bbb3
children 8db4d406b3d3
files mercurial/commands.py tests/test-help.out
diffstat 2 files changed, 20 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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