purge.py
changeset 2372 449906e17576
parent 2371 e39300cdb8ff
child 2373 61976a27aa2b
--- a/purge.py
+++ b/purge.py
@@ -134,7 +134,7 @@ 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 = bool(opts['nothing'])
+    act = not opts['nothing']
     abort_on_err = bool(opts['abort_on_err'])
     p = Purge(act, abort_on_err)
     p.purge(ui, repo, paths)