You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by João Pinheiro <jo...@pontosi.pt> on 2010/08/13 09:23:32 UTC

svn : problems with files starting with '-'

Hi,
I'm using subversion version 1.6.12 in FreeBSD and I'm having some 
difficulties with files that start with '-':

cm% svn rename -MediacatController.php MediacatController.php
svn: invalid option character: M
Type 'svn help' for usage.

cm% svn rename %2DMediacatController.php MediacatController.php
svn: '%2DMediacatController.php' is not under version control

cm% svn rename '-MediacatController.php' MediacatController.php
svn: invalid option character: M
Type 'svn help' for usage.

Does anyone know a quick workaround for this?

Regards,
     João Pinheiro



Re: svn : problems with files starting with '-'

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Another option:

  	svn rename -- -MediacatController.php MediacatController.php

(which is a bit easier for scripting)

Tony Sweeney wrote on Fri, Aug 13, 2010 at 10:34:58 +0100:
> The usual UNIX "trick" would be:
> 
> 	svn rename ./-MediacatController.php MediacatController.php
> 
> Does this not work for you?
> 
> Tony.
> 
> > -----Original Message-----
> > From: João Pinheiro [mailto:joao.pinheiro@pontosi.pt] 
> > Sent: 13 August 2010 10:24
> > To: users@subversion.apache.org
> > Subject: svn <command>: problems with files starting with '-'
> > 
> > Hi,
> > I'm using subversion version 1.6.12 in FreeBSD and I'm having 
> > some difficulties with files that start with '-':
> > 
> > cm% svn rename -MediacatController.php MediacatController.php
> > svn: invalid option character: M
> > Type 'svn help' for usage.
> > 
> > cm% svn rename %2DMediacatController.php MediacatController.php
> > svn: '%2DMediacatController.php' is not under version control
> > 
> > cm% svn rename '-MediacatController.php' MediacatController.php
> > svn: invalid option character: M
> > Type 'svn help' for usage.
> > 
> > Does anyone know a quick workaround for this?
> > 
> > Regards,
> >      João Pinheiro
> > 
> > 
> > 
> > 
> > ______________________________________________________________________
> > This email has been scanned by the MessageLabs Email Security System.
> > For more information please visit 
> > http://www.messagelabs.com/email 
> > ______________________________________________________________________
> > 

Re: svn : problems with files starting with '-'

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Another option:

  	svn rename -- -MediacatController.php MediacatController.php

(which is a bit easier for scripting)

Tony Sweeney wrote on Fri, Aug 13, 2010 at 10:34:58 +0100:
> The usual UNIX "trick" would be:
> 
> 	svn rename ./-MediacatController.php MediacatController.php
> 
> Does this not work for you?
> 
> Tony.
> 
> > -----Original Message-----
> > From: João Pinheiro [mailto:joao.pinheiro@pontosi.pt] 
> > Sent: 13 August 2010 10:24
> > To: users@subversion.apache.org
> > Subject: svn <command>: problems with files starting with '-'
> > 
> > Hi,
> > I'm using subversion version 1.6.12 in FreeBSD and I'm having 
> > some difficulties with files that start with '-':
> > 
> > cm% svn rename -MediacatController.php MediacatController.php
> > svn: invalid option character: M
> > Type 'svn help' for usage.
> > 
> > cm% svn rename %2DMediacatController.php MediacatController.php
> > svn: '%2DMediacatController.php' is not under version control
> > 
> > cm% svn rename '-MediacatController.php' MediacatController.php
> > svn: invalid option character: M
> > Type 'svn help' for usage.
> > 
> > Does anyone know a quick workaround for this?
> > 
> > Regards,
> >      João Pinheiro
> > 
> > 
> > 
> > 
> > ______________________________________________________________________
> > This email has been scanned by the MessageLabs Email Security System.
> > For more information please visit 
> > http://www.messagelabs.com/email 
> > ______________________________________________________________________
> > 

RE: svn : problems with files starting with '-'

Posted by Tony Sweeney <ts...@omnifone.com>.
The usual UNIX "trick" would be:

	svn rename ./-MediacatController.php MediacatController.php

Does this not work for you?

Tony.

> -----Original Message-----
> From: João Pinheiro [mailto:joao.pinheiro@pontosi.pt] 
> Sent: 13 August 2010 10:24
> To: users@subversion.apache.org
> Subject: svn <command>: problems with files starting with '-'
> 
> Hi,
> I'm using subversion version 1.6.12 in FreeBSD and I'm having 
> some difficulties with files that start with '-':
> 
> cm% svn rename -MediacatController.php MediacatController.php
> svn: invalid option character: M
> Type 'svn help' for usage.
> 
> cm% svn rename %2DMediacatController.php MediacatController.php
> svn: '%2DMediacatController.php' is not under version control
> 
> cm% svn rename '-MediacatController.php' MediacatController.php
> svn: invalid option character: M
> Type 'svn help' for usage.
> 
> Does anyone know a quick workaround for this?
> 
> Regards,
>      João Pinheiro
> 
> 
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit 
> http://www.messagelabs.com/email 
> ______________________________________________________________________
> 

Re: svn : problems with files starting with '-'

Posted by João Pinheiro <jo...@pontosi.pt>.
Hi,
Worked like a charm! thanks for the tip :)

João Pinheiro

Em 13-08-2010 10:34, Alexander Skwar escreveu:
> Hi.
>
> 2010/8/13 João Pinheiro<jo...@pontosi.pt>:
>
>    
>> cm% svn rename '-MediacatController.php' MediacatController.php
>> svn: invalid option character: M
>> Type 'svn help' for usage.
>>
>> Does anyone know a quick workaround for this?
>>      
> "svn rename ./-Mediacat..." - this should work.
>
> Alexander
> --
> ↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
> ↯ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com , AIM: alexws77  ↯
>    

Re: svn : problems with files starting with '-'

Posted by Alexander Skwar <al...@gmail.com>.
Hi.

2010/8/13 João Pinheiro <jo...@pontosi.pt>:

> cm% svn rename '-MediacatController.php' MediacatController.php
> svn: invalid option character: M
> Type 'svn help' for usage.
>
> Does anyone know a quick workaround for this?

"svn rename ./-Mediacat..." - this should work.

Alexander
--
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com , AIM: alexws77  ↯