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

Re: [SVNMERGE][PATCH] svnmerge rollback

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2006-05-19 15:08:58 CEST

Madan U Sreenivasan wrote:

>>>> + if len(revs) == 0:
>> if revs:
> [snip]
>>>> + if len(revs & src_pre_exist_range) !=
>> 0:
>> if revs & src_pre_exist_range:
>
> hmmm, both expressions result in and empty RevisionSet, and not None.
> So, am afraid we cant do this...

RevisionSet implements __nonzero__.

>>> import svnmerge
>>> r = svnmerge.RevisionSet("")
>>> if r:
... print "ciao"
...
>>> bool(r)
False

-- 
Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 19 15:09:55 2006

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.