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