subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@gmail.com>
Subject Re: svn commit: r991474 - /subversion/trunk/tools/dev/wc-ng/bump-to-19.py
Date Thu, 02 Sep 2010 00:08:42 GMT
On Wed, Sep 1, 2010 at 04:44,  <julianfoad@apache.org> wrote:
>...
> +++ subversion/trunk/tools/dev/wc-ng/bump-to-19.py Wed Sep  1 08:44:08 2010
>...
> +    try:
> +      os.remove(db_path(wc_subdir_path))
> +      if os.path.exists(pristine_path(wc_subdir_path)):
> +        os.rmdir(pristine_path(wc_subdir_path))
> +      shutil.rmtree(tmp_path(wc_subdir_path))
> +      os.rmdir(dotsvn_path(wc_subdir_path))
> +    except Exception, e:
> +      print e
> +      failed_delete_subdirs += [wc_subdir_path]

For future reference, a better idiom is:

  failed_delete_subdirs.append(wc_subdir_path)

>...

Cheers,
-g

Mime
View raw message