macos - SVN Mac - 提交名称中带有 "@"的文件

标签 macos svn

我在 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/

相关文章:

java - 服务构建器在构建时无法删除其 jar 文件

svn - 部署时版本控制中的配置文件

c - 只是一个循环,还有 33 个泄漏

objective-c - 在 OS X 上实现后台应用程序的最佳方式

macos - 非常简单的 OSX bash 脚本 : echo gives no output

swift - 如何使用 Swift 和 AppKit(适用于 MacOS 的 Xcode)获取 IOBluetoothDevice 的电池电量

eclipse - 在 Ubuntu 上从 Eclipse 执行 maven 时的 SVN 密码

C++ 无法在我的 mac 上运行,未找到架构 x86_64 的符号

git - 如何使用 SmartGit 从以前的 svn 修订版创建分支?

windows - 如何在具有不同编码的异构环境中使用maven?