Use self._ui.note(...) instead of if self._ui.verbose: self._ui.status(...)
authordemian@gaudron.lan
Tue, 16 May 2006 14:54:34 +0200
changeset 2371 e39300cdb8ff
parent 2370 de893ad6bd17
child 2372 449906e17576
Use self._ui.note(...) instead of if self._ui.verbose: self._ui.status(...)
purge.py
--- a/purge.py	Tue May 16 13:40:45 2006 +0200
+++ b/purge.py	Tue May 16 14:54:34 2006 +0200
@@ -68,8 +68,7 @@
         # directory.
         if self._repo.dirstate.state(relative_name) != '?':
             return
-        if self._ui.verbose:
-            self._ui.status(name + '\n')
+        self._ui.note(name + '\n')
         if self._act:
             try:
                 os.remove(name)
@@ -77,8 +76,7 @@
                 error('"%s" cannot be removed' % name)
 
     def _remove_dir(self, name):
-        if self._ui.verbose:
-            self._ui.status(name + '\n')
+        self._ui.note(name + '\n')
         if self._act:
             try:
                 os.rmdir(name)