[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r991474 - /subversion/trunk/tools/dev/wc-ng/bump-to-19.py

From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 1 Sep 2010 20:08:42 -0400

On Wed, Sep 1, 2010 at 04:44, <julianfoad_at_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
Received on 2010-09-02 02:09:35 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.