[SVNMERGE][PATCH] svnmerge rollback
Giovanni Bajo
rasky at develer.com
Fri May 19 06:08:58 PDT 2006
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
More information about the Svnmerge
mailing list