Re: Problem with "svn add" command

2010-03-15 Thread Itamar O
Both the escaping of the '-' and adding '--' before the filename did the trick :-) Thanks! BTW, This was on Windows. On Tue, Mar 16, 2010 at 2:05 AM, Ryan Schmidt < subversion-20...@ryandesign.com> wrote: > > On Mar 15, 2010, at 16:12, Aaron Friesen wrote: > > > From: Itamar O [mailto:itamar...@

Re: Problem with "svn add" command

2010-03-15 Thread Ryan Schmidt
On Mar 15, 2010, at 16:12, Aaron Friesen wrote: > From: Itamar O [mailto:itamar...@gmail.com] >> I have an unversioned file named "- example.txt" (don't ask why..), >> and when I 'svn add "- example.txt"' I get: >> svn: invalid option character: >> Type 'svn help' for usage. > > Try: > > s

Re: Problem with "svn add" command

2010-03-15 Thread David Weintraub
A slash in front of a file name can be confused with a parameter. The trick is to prefix files with a ./: $ svn add ./-example.txt That way, Subversion doesn't think the -example.txt are a series of parameters to pass to the svn add command. If there's a space after the dash and before the first

RE: Problem with "svn add" command

2010-03-15 Thread Aaron Friesen
> From: Itamar O [mailto:itamar...@gmail.com] > I might be doing something wrong here, > but I have an unversioned file named "- example.txt" (don't ask why..), > and when I 'svn add "- example.txt"' I get: >   svn: invalid option character: >   Type 'svn help' for usage. Try: svn add -- "- ex