~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clean_tree.py

  • Committer: Parth Malwankar
  • Date: 2010-08-21 03:42:26 UTC
  • mto: This revision was merged to the branch mainline in revision 5386.
  • Revision ID: parth.malwankar@gmail.com-20100821034226-comnjgn0t5ho9szm
improved comments

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    def onerror(function, path, excinfo):
102
102
        """Show warning for errors seen by rmtree.
103
103
        """
 
104
        # Handle only permission error while removing files.
 
105
        # Other errors are re-raised.
104
106
        if function is not os.remove or excinfo[1].errno != errno.EACCES:
105
107
            raise
106
108
        ui.ui_factory.show_warning('unable to remove %s' % path)