changeset 2370:de893ad6bd17

Command line options are read in a saner way
author demian@gaudron.lan
date Tue, 16 May 2006 13:40:45 +0200
parents 9da3dd62c827
children e39300cdb8ff
files purge.py
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/purge.py	Tue May 16 13:37:48 2006 +0200
+++ b/purge.py	Tue May 16 13:40:45 2006 +0200
@@ -136,14 +136,8 @@
     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)