[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: Greg Stein <gstein_at_gmail.com>
Date: Sun, 8 May 2011 20:14:39 -0400

On Sun, May 8, 2011 at 08:46, <danielsh_at_apache.org> wrote:
>...
> +++ 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")

If you're invoking Python, then I'd recommend just writing the whole
thing in Python. (tho... I guess some thing are easier in sh...)

>...

Cheers,
-g
Received on 2011-05-09 02:15:05 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.