Show More
@@ -319,8 +319,10 b' serve [options]::' | |||||
319 | -n, --name <name> name to show in web pages (default: working dir) |
|
319 | -n, --name <name> name to show in web pages (default: working dir) | |
320 | -t, --templatedir <path> web templates to use |
|
320 | -t, --templatedir <path> web templates to use | |
321 |
|
321 | |||
322 | status:: |
|
322 | status [options] [files]:: | |
323 | Show changed files in the working directory. |
|
323 | Show changed files in the working directory. If no names are | |
|
324 | given, all files are shown. Otherwise, only files matching the | |||
|
325 | given names are shown. | |||
324 |
|
326 | |||
325 | The codes used to show the status of files are: |
|
327 | The codes used to show the status of files are: | |
326 |
|
328 | |||
@@ -329,6 +331,11 b' status::' | |||||
329 | R = removed |
|
331 | R = removed | |
330 | ? = not tracked |
|
332 | ? = not tracked | |
331 |
|
333 | |||
|
334 | options: | |||
|
335 | ||||
|
336 | -I, --include <pat> include directories matching the given patterns | |||
|
337 | -X, --exclude <pat> exclude directories matching the given patterns | |||
|
338 | ||||
332 | tag [-l -t <text> -d <datecode> -u <user>] <name> [revision]:: |
|
339 | tag [-l -t <text> -d <datecode> -u <user>] <name> [revision]:: | |
333 | Name a particular revision using <name>. |
|
340 | Name a particular revision using <name>. | |
334 |
|
341 |
@@ -980,7 +980,7 b' def serve(ui, repo, **opts):' | |||||
980 | ui.status('listening at http://%s/\n' % addr) |
|
980 | ui.status('listening at http://%s/\n' % addr) | |
981 | httpd.serve_forever() |
|
981 | httpd.serve_forever() | |
982 |
|
982 | |||
983 | def status(ui, repo): |
|
983 | def status(ui, repo, *pats, **opts): | |
984 | '''show changed files in the working directory |
|
984 | '''show changed files in the working directory | |
985 |
|
985 | |||
986 | C = changed |
|
986 | C = changed | |
@@ -988,7 +988,8 b' def status(ui, repo):' | |||||
988 | R = removed |
|
988 | R = removed | |
989 | ? = not tracked''' |
|
989 | ? = not tracked''' | |
990 |
|
990 | |||
991 | (c, a, d, u) = repo.changes() |
|
991 | (c, a, d, u) = repo.changes(match = matchpats(ui, repo.getcwd(), | |
|
992 | pats, opts)) | |||
992 | (c, a, d, u) = map(lambda x: relfilter(repo, x), (c, a, d, u)) |
|
993 | (c, a, d, u) = map(lambda x: relfilter(repo, x), (c, a, d, u)) | |
993 |
|
994 | |||
994 | for f in c: |
|
995 | for f in c: | |
@@ -1192,7 +1193,10 b' table = {' | |||||
1192 | ('', 'stdio', None, 'for remote clients'), |
|
1193 | ('', 'stdio', None, 'for remote clients'), | |
1193 | ('t', 'templates', "", 'template map')], |
|
1194 | ('t', 'templates', "", 'template map')], | |
1194 | "hg serve [OPTION]..."), |
|
1195 | "hg serve [OPTION]..."), | |
1195 |
"^status": (status, |
|
1196 | "^status": (status, | |
|
1197 | [('I', 'include', [], 'include path in search'), | |||
|
1198 | ('X', 'exclude', [], 'exclude path from search')], | |||
|
1199 | 'hg status [OPTION]... [FILE]...'), | |||
1196 | "tag": |
|
1200 | "tag": | |
1197 | (tag, |
|
1201 | (tag, | |
1198 | [('l', 'local', None, 'make the tag local'), |
|
1202 | [('l', 'local', None, 'make the tag local'), |
General Comments 0
You need to be logged in to leave comments.
Login now