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

Re: [PATCH] cvs2svn.py (1/2): infrastructure/options

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-10-25 02:29:28 CEST

On Thu, Oct 24, 2002 at 11:50:14PM +0200, Branko Cibej wrote:
>...
> >+def branch_path(ctx, branch_name = None):
> >+ if branch_name == None:
>
> Minor nit: None is a unique object, so you can/should test with "is"
> rather than "==". This is not a showstopper, though.

Drop the test altogether (and reverse the blocks):

  if branch_name:
    whatever...

> +1 for applying options.dff and usagectx.diff (should be applied on top
> of the former, right?). Greg, any objections?

+1 ... looks great!

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 Fri Oct 25 02:29:45 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.