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

Note for people using Subversion within PowerShell on Windows

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 23 Nov 2010 11:19:46 -0500

I was just experimenting with a PowerShell v2 session (instead of the
basic Command Prompt) and got the following:

PS C:\_Projects> svn diff -r {2010-11-22}:HEAD
svn: Syntax error in revision argument '-encodedCommand'

If the revision range is enclosed in quotes, it works properly:

PS C:\_Projects> svn diff -r "{2010-11-22}:HEAD"

You can also escape the curly braces with the backtick character.

PS C:\_Projects> svn diff -r `{2010-11-22`}:HEAD

I believe the issue is specifically with the curly braces {}, as those
denote a code block in PowerShell.

Using a revision range of 3000:HEAD does not require that the range be
enclosed in quotes, but I'm going to try to get in the habit of just
quoting the revision range regardless.

Command Prompt works either way - quoted or unquoted, doesn't matter.

I'm on XP, it's probably an issue on newer versions of Windows as
well. Not sure how many folks out there are actually using svn.exe on
Windows in PowerShell, but it's in the list archive now in case anyone
has a similar issue.
Received on 2010-11-23 17:21:07 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.