hgext/purge.py
branchstable
changeset 20565 f1c3ba167b0c
parent 19139 31c863bd21e8
child 21853 8127b9e798b1
--- a/hgext/purge.py	Mon Feb 24 18:48:48 2014 -0600
+++ b/hgext/purge.py	Tue Feb 25 06:30:21 2014 +0530
@@ -101,10 +101,12 @@
     status = repo.status(match=match, ignored=opts['all'], unknown=True)
 
     for f in sorted(status[4] + status[5]):
-        ui.note(_('removing file %s\n') % f)
+        if act:
+            ui.note(_('removing file %s\n') % f)
         remove(removefile, f)
 
     for f in sorted(directories, reverse=True):
         if match(f) and not os.listdir(repo.wjoin(f)):
-            ui.note(_('removing directory %s\n') % f)
+            if act:
+                ui.note(_('removing directory %s\n') % f)
             remove(os.rmdir, f)