Some functions were called as globals (i.e. I forgot some "self.")
authordemian@gaudron.lan
Tue, 16 May 2006 21:03:07 +0200
changeset 2373 61976a27aa2b
parent 2372 449906e17576
child 2374 ffc2ed61061b
Some functions were called as globals (i.e. I forgot some "self.")
purge.py
--- a/purge.py	Tue May 16 18:55:22 2006 +0200
+++ b/purge.py	Tue May 16 21:03:07 2006 +0200
@@ -60,7 +60,7 @@
         if self._abort_on_err:
             raise util.Abort(msg)
         else:
-            ui.warn('warning: ' + msg + '\n')
+            self._ui.warn('warning: ' + msg + '\n')
 
     def _remove_file(self, name):
         relative_name = self._relative_name(name)
@@ -73,7 +73,7 @@
             try:
                 os.remove(name)
             except OSError, e:
-                error('"%s" cannot be removed' % name)
+                self._error('"%s" cannot be removed' % name)
 
     def _remove_dir(self, name):
         self._ui.note(name + '\n')
@@ -81,7 +81,7 @@
             try:
                 os.rmdir(name)
             except OSError, e:
-                error('"%s" cannot be removed' % name)
+                self._error('"%s" cannot be removed' % name)
 
     def _relative_name(self, name):
         splitted_path = self._split_path(name)[len(self._hg_root):]