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

Re: svn commit: r1100726 - /subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh

From: Daniel Shahaf <danielsh_at_apache.org>
Date: Mon, 9 May 2011 11:27:06 +0300

Arfrever Frehtes Taifersar Arahesis wrote on Mon, May 09, 2011 at 00:11:13 +0200:
> 2011-05-08 14:46:21 danielsh_at_apache.org napisaƂ(a):
> > Author: danielsh
> > Date: Sun May 8 12:46:20 2011
> > New Revision: 1100726
> >
> > URL: http://svn.apache.org/viewvc?rev=1100726&view=rev
> > Log:
> > More portability fixes. Drop xargs and don't depend on seq(1).
> >
> > * tools/dev/benchmarks/large_dirs/create_bigdir.sh
> > (get_sequence): New wrapper around jot/seq/python.
> > (main loop): Use it instead of seq and xargs.
> >
> > Modified:
> > subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh
> >
> > Modified: subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh
> > URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh?rev=1100726&r1=1100725&r2=1100726&view=diff
> > ==============================================================================
> > --- subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh (original)
> > +++ subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh Sun May 8 12:46:20 2011
> > @@ -99,6 +99,13 @@ echo
> > rm -rf $WC
> > ${SVN} co $URL $WC > /dev/null
> >
> > +# helpers
> > +
> > +get_sequence() {
> > + # three equivalents...
> > + (jot - "$1" "$2" "1" 2>/dev/null || seq -s ' ' "$1" "$2" 2>/dev/null || python -c "for i in range($1,$2+1): print i")
>
> http://www.archlinux.org/news/python-is-now-python-3/
> (I heard that such a change will occur also in Gentoo in 2011.)

And....? Did python 3 break the syntax I am using here?

Anyway, if it breaks stuff for py3 users, I'd appreciate if some of them
could fix it --- I don't have it installed at the moment.
Received on 2011-05-09 10:27:19 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.