##// END OF EJS Templates
purge: wrap docstrings at 70 characters
Martin Geisler -
r9270:00cc7fa0 default
parent child Browse files
Show More
@@ -3,8 +3,8 b''
3 3 # This is a small extension for Mercurial (http://mercurial.selenic.com/)
4 4 # that removes files not known to mercurial
5 5 #
6 # This program was inspired by the "cvspurge" script contained in CVS utilities
7 # (http://www.red-bean.com/cvsutils/).
6 # This program was inspired by the "cvspurge" script contained in CVS
7 # utilities (http://www.red-bean.com/cvsutils/).
8 8 #
9 9 # For help on the usage of "hg purge" use:
10 10 # hg help purge
@@ -32,14 +32,14 b' import os, stat'
32 32 def purge(ui, repo, *dirs, **opts):
33 33 '''removes files not tracked by Mercurial
34 34
35 Delete files not known to Mercurial. This is useful to test local and
36 uncommitted changes in an otherwise-clean source tree.
35 Delete files not known to Mercurial. This is useful to test local
36 and uncommitted changes in an otherwise-clean source tree.
37 37
38 38 This means that purge will delete:
39 39
40 40 - Unknown files: files marked with "?" by "hg status"
41 - Empty directories: in fact Mercurial ignores directories unless they
42 contain files under source control management
41 - Empty directories: in fact Mercurial ignores directories unless
42 they contain files under source control management
43 43
44 44 But it will leave untouched:
45 45
@@ -50,9 +50,10 b' def purge(ui, repo, *dirs, **opts):'
50 50 If directories are given on the command line, only files in these
51 51 directories are considered.
52 52
53 Be careful with purge, as you could irreversibly delete some files you
54 forgot to add to the repository. If you only want to print the list of
55 files that this program would delete, use the --print option.
53 Be careful with purge, as you could irreversibly delete some files
54 you forgot to add to the repository. If you only want to print the
55 list of files that this program would delete, use the --print
56 option.
56 57 '''
57 58 act = not opts['print']
58 59 eol = '\n'
General Comments 0
You need to be logged in to leave comments. Login now