##// END OF EJS Templates
purge: wrapped docstrings at 78 characters
Martin Geisler -
r9072:59e5437b default
parent child Browse files
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 and uncommitted changes in an otherwise-clean source tree.
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 they contain files under source control management
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 you forgot to add to the repository. If you only want to print the
51 forgot to add to the repository. If you only want to print the list of
52 list of files that this program would delete, use the --print
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