author | demian@gaudron.lan |
Tue, 16 May 2006 13:40:45 +0200 | |
changeset 2370 | de893ad6bd17 |
parent 2369 | 9da3dd62c827 |
child 2371 | e39300cdb8ff |
--- a/purge.py +++ b/purge.py @@ -136,14 +136,8 @@ def purge(ui, repo, *paths, **opts): forgot to add to the repository. If you only want to print the list of files that this program would delete use the -vn options. ''' - act = True - if opts['nothing']: - act = False - - abort_on_err = True - if not opts['abort_on_err']: - abort_on_err = False - + act = bool(opts['nothing']) + abort_on_err = bool(opts['abort_on_err']) p = Purge(act, abort_on_err) p.purge(ui, repo, paths)