我在 Mac 上使用的是与终端一起使用的默认 SVN 客户端。问题是我想提交三个包含“@”的文件,并且仅提交这些文件。然而它似乎不起作用,SVN 由于某种原因无法读取@。我是这样做的:
svn commit Assets/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f0bd9f9e9b9589b0a082999d95de80939b" rel="noreferrer noopener nofollow">[email protected]</a> -m "test"
正确的语法是什么?
最佳答案
这就是 peg revisions 的语法。这是手册中建议的解决方法:
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@.
很丑,不是吗? :)
关于macos - SVN Mac - 提交名称中带有 "@"的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8644850/