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

Re: the @ syntax (was: svn commit: rev 1643 ...)

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2002-04-08 16:35:28 CEST

On Fri, Apr 05, 2002 at 02:31:45PM -0800, Greg Stein wrote:
[snip]
> Here is an idea: what if we say that a trailing @ means "no
> revision specified". Essentially, the syntax would be:
>
> file '@' revision
>
> Where revision can be empty, a number, a few keywords, or a
> date. Since we only look at the *last* '@' symbol, then a
> shell script can simply do:
>
> for f in $*; do
> svn add $f@
> done
>
> That trailing @ ensures that we don't look at a @ symbol in $f
> and attempt to process it.
[snip]

That should be:

for f; do
        svn add "${f}@"
done

or:

for f in "$@"; do
        svn add "${f}@"
done

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 8 16:37:08 2002

This is an archived mail posted to the Subversion Dev mailing list.