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

Re: svn commit: rev 3576 - clients/gsvn/trunk/src

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-10-31 11:15:01 CET

On Wed, Oct 30, 2002 at 02:54:41AM -0600, cmpilato@tigris.org wrote:
>...
> +++ clients/gsvn/trunk/src/gsvn_wc.py Wed Oct 30 02:54:40 2002
>...
> + debug_stuff = str([kind, mime_type, states[content_state],
> + states[prop_state], revision])
> + print "%s %s : %s" % (actions[action], path, debug_stuff)

The %s format modifier will, effectively, call str() on the argument then
insert the resulting string. Thus, the str() for debug_stuff is redundant.

>...
> + cmt_info = _client.svn_client_commit (notify_fn,

This function call style is never used in Python.

[ well, maybe in some blasphemous code like distutils, but hey... :-) ]

>...
> + def mkdir(self, nodes):
> +
> + subpool = _util.svn_pool_create(self.pool)
> + for n in nodes:
> + _client.svn_client_mkdir(n, self.auth_baton,
> + None, notify_fn, subpool)
> + _util.apr_pool_destroy(subpool)
> +
> + def delete(self, nodes,
> + force=0):
> +
> + subpool = _util.svn_pool_create(self.pool)
> + for n in nodes:
> + _client.svn_client_delete(n, None, force, self.auth_baton,
> + None, notify_fn, subpool)
> + _util.apr_pool_destroy(subpool)

If you're creating an iteration subpool, don't you want to clear it?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 31 11:14:39 2002

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.