Reputation: 47164
-- Hi Everyone
I have a directory called temp and I want to rename it @Controller (it's a matlab thing, don't ask).
But when I run: $ svn move temp @Controller
SVN gives me a weird error about a missing peg?
I also tried $ svn move temp @Controller@
Because I read SVN only looks at the last at sign, but that moved the folder to @Controller@
Upvotes: 2
Views: 296
Reputation: 28583
Subversion uses @ for a special purpose.
The solution is what you did: add an @
at the end (but it sounds like it should have made it @Controller
)
The perceptive reader is probably wondering at this point whether the peg revision syntax causes problems for working copy paths or URLs that actually have at signs in them. After all, how does svn know whether news@11 is the name of a directory in my tree or just a syntax for “revision 11 of news”? Thankfully, while svn will always assume the latter, there is a trivial workaround. You need only append an at sign to the end of the path, such as news@11@. svn cares only about the last at sign in the argument, and it is not considered illegal to omit a literal peg revision specifier after that at sign. This workaround even applies to paths that end in an at sign—you would use filename@@ to talk about a file named filename@.
Upvotes: 2