Mercurial > hg
comparison mercurial/commands.py @ 14435:5f6090e559fa
context: make forget work like commands.forget
Switch users of wctx.delete(..., False) to forget.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 May 2011 17:15:35 -0500 |
parents | cc8c09855d19 |
children | d1a1578c5f78 |
comparison
equal
deleted
inserted
replaced
14434:cc8c09855d19 | 14435:5f6090e559fa |
---|---|
2267 | 2267 |
2268 for f in forget: | 2268 for f in forget: |
2269 if ui.verbose or not m.exact(f): | 2269 if ui.verbose or not m.exact(f): |
2270 ui.status(_('removing %s\n') % m.rel(f)) | 2270 ui.status(_('removing %s\n') % m.rel(f)) |
2271 | 2271 |
2272 repo[None].remove(forget, unlink=False) | 2272 repo[None].forget(forget) |
2273 return errs | 2273 return errs |
2274 | 2274 |
2275 @command('grep', | 2275 @command('grep', |
2276 [('0', 'print0', None, _('end fields with NUL')), | 2276 [('0', 'print0', None, _('end fields with NUL')), |
2277 ('', 'all', None, _('print all revisions that match')), | 2277 ('', 'all', None, _('print all revisions that match')), |