Show More
@@ -32,13 +32,13 b' import os, stat' | |||||
32 | def purge(ui, repo, *dirs, **opts): |
|
32 | def purge(ui, repo, *dirs, **opts): | |
33 | '''removes files not tracked by Mercurial |
|
33 | '''removes files not tracked by Mercurial | |
34 |
|
34 | |||
35 | Delete files not known to Mercurial. This is useful to test local |
|
35 | Delete files not known to Mercurial. This is useful to test local and | |
36 |
|
|
36 | uncommitted changes in an otherwise-clean source tree. | |
37 |
|
37 | |||
38 | This means that purge will delete: |
|
38 | This means that purge will delete: | |
39 | - Unknown files: files marked with "?" by "hg status" |
|
39 | - Unknown files: files marked with "?" by "hg status" | |
40 | - Empty directories: in fact Mercurial ignores directories unless |
|
40 | - Empty directories: in fact Mercurial ignores directories unless they | |
41 |
|
|
41 | contain files under source control management | |
42 | But it will leave untouched: |
|
42 | But it will leave untouched: | |
43 | - Modified and unmodified tracked files |
|
43 | - Modified and unmodified tracked files | |
44 | - Ignored files (unless --all is specified) |
|
44 | - Ignored files (unless --all is specified) | |
@@ -47,10 +47,9 b' def purge(ui, repo, *dirs, **opts):' | |||||
47 | If directories are given on the command line, only files in these |
|
47 | If directories are given on the command line, only files in these | |
48 | directories are considered. |
|
48 | directories are considered. | |
49 |
|
49 | |||
50 | Be careful with purge, as you could irreversibly delete some files |
|
50 | Be careful with purge, as you could irreversibly delete some files you | |
51 |
|
|
51 | forgot to add to the repository. If you only want to print the list of | |
52 |
|
|
52 | files that this program would delete, use the --print option. | |
53 | option. |
|
|||
54 | ''' |
|
53 | ''' | |
55 | act = not opts['print'] |
|
54 | act = not opts['print'] | |
56 | eol = '\n' |
|
55 | eol = '\n' |
General Comments 0
You need to be logged in to leave comments.
Login now