SVN-如何使用包含@符号的目录? [英] SVN - How to work with directories containing @ sign?

查看:168
本文介绍了SVN-如何使用包含@符号的目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

- 大家好

我有一个名为temp的目录,我想将其重命名为@Controller(这是matlab的东西,不要问).

I have a directory called temp and I want to rename it @Controller (it's a matlab thing, don't ask).

但是当我跑步时: $ svn move temp @Controller

But when I run: $ svn move temp @Controller

SVN给我一个关于缺少钉的奇怪错误?

SVN gives me a weird error about a missing peg?

我也尝试过 $ svn move temp @Controller @

I also tried $ svn move temp @Controller@

因为我读到SVN只看最后一个at符号,但是将文件夹移到了@Controller @

Because I read SVN only looks at the last at sign, but that moved the folder to @Controller@

推荐答案

Subversion出于特殊目的使用@.

Subversion uses @ for a special purpose.

解决方案就是您要做的:在末尾添加@(但听起来应该已经做到了@Controller)

The solution is what you did: add an @ at the end (but it sounds like it should have made it @Controller)

钉子和操作性修订

具有洞察力的读者可能在此时想知道钉钉修订版语法是否会导致工作副本路径或URL中实际带有符号的问题.毕竟,svn怎么知道news @ 11是我树中目录的名称还是只是新闻修订版11"的语法?值得庆幸的是,尽管svn始终假定后者,但有一个简单的解决方法.您只需要在路径末尾附加一个at符号,例如news @ 11 @. svn只关心参数中的最后一个符号,在符号后省略字面钉修订说明符并不被认为是非法的.此解决方法甚至适用于以at符号结尾的路径-您可以使用filename @@来讨论名为filename @的文件.

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@.

这篇关于SVN-如何使用包含@符号的目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆