diff -r d2dc7663d512 -r 91ca3afab8e8 mercurial/commands.py --- a/mercurial/commands.py Wed Jul 20 02:57:20 2005 -0800 +++ b/mercurial/commands.py Wed Jul 20 03:01:23 2005 -0800 @@ -980,7 +980,7 @@ ui.status('listening at http://%s/\n' % addr) httpd.serve_forever() -def status(ui, repo): +def status(ui, repo, *pats, **opts): '''show changed files in the working directory C = changed @@ -988,7 +988,8 @@ R = removed ? = not tracked''' - (c, a, d, u) = repo.changes() + (c, a, d, u) = repo.changes(match = matchpats(ui, repo.getcwd(), + pats, opts)) (c, a, d, u) = map(lambda x: relfilter(repo, x), (c, a, d, u)) for f in c: @@ -1192,7 +1193,10 @@ ('', 'stdio', None, 'for remote clients'), ('t', 'templates', "", 'template map')], "hg serve [OPTION]..."), - "^status": (status, [], 'hg status'), + "^status": (status, + [('I', 'include', [], 'include path in search'), + ('X', 'exclude', [], 'exclude path from search')], + 'hg status [OPTION]... [FILE]...'), "tag": (tag, [('l', 'local', None, 'make the tag local'),