25 # |
25 # |
26 # You should have received a copy of the GNU General Public License |
26 # You should have received a copy of the GNU General Public License |
27 # along with this program; if not, write to the Free Software |
27 # along with this program; if not, write to the Free Software |
28 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
28 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
29 |
29 |
30 from mercurial import hg, util |
30 from mercurial import hg, util, commands |
31 from mercurial.i18n import _ |
31 from mercurial.i18n import _ |
32 import os |
32 import os |
33 |
33 |
34 def dopurge(ui, repo, dirs=None, act=True, ignored=False, |
34 def dopurge(ui, repo, dirs=None, act=True, ignored=False, |
35 abort_on_err=False, eol='\n', |
35 abort_on_err=False, eol='\n', |
160 ('', 'all', None, _('purge ignored files too')), |
160 ('', 'all', None, _('purge ignored files too')), |
161 ('f', 'force', None, _('purge even when missing files are detected')), |
161 ('f', 'force', None, _('purge even when missing files are detected')), |
162 ('p', 'print', None, _('print the file names instead of deleting them')), |
162 ('p', 'print', None, _('print the file names instead of deleting them')), |
163 ('0', 'print0', None, _('end filenames with NUL, for use with xargs' |
163 ('0', 'print0', None, _('end filenames with NUL, for use with xargs' |
164 ' (implies -p)')), |
164 ' (implies -p)')), |
165 ('I', 'include', [], _('include names matching the given patterns')), |
165 ] + commands.walkopts, |
166 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
|
167 _('hg purge [OPTION]... [DIR]...')) |
166 _('hg purge [OPTION]... [DIR]...')) |
168 } |
167 } |