SVN 中的条目文件有问题

发布于 2024-10-23 11:41:15 字数 197 浏览 5 评论 0原文

我正在尝试从 file:///home.... 路径更改 SVN 中的“entries”文件(通过使用批处理文件),我将其更改为 file:/ //C:/TRY.... 然而,我成功地做到了这一点,但我的条目文件被压缩意味着没有输入“¶”。当我从命令提示符执行 svn info 时,它没有给我 svn info

I am trying to make changes in 'entries' file in SVN (by using batch file) from path as file:///home.... I am changing it to file:///C:/TRY.... However I am successful in doing so but my entries file is compressed means there are no enter '¶'. And some how when I execute svn info from command prompt its not giving me svn info

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

请恋爱 2024-10-30 11:41:15

永远不要弄乱你不理解的数据!

你问错问题了!您询问如何弄乱条目文件,但这只是因为您正在尝试做其他事情。总是在你最初要做的事情上寻求帮助,而不是在你尝试以某种方式去做时遇到的问题寻求帮助——可能有更好的方法。

相反,您应该询问如何将工作副本指向另一个 url。

为此,甚至还有一个命令! :svn switch --relocate

Never ever mess with data you don't understand!

You're asking the wrong question! You're asking on how to mess with the entries file, but that's just because you're trying to do something else. Always ask for help with what you're originally have to do, not with the problems you get when you try to do it a certain way - there might be a much better way.

Instead, you should have asked how you can point your working copy to another url.

And for that, there's even a command for it! : svn switch --relocate

老娘不死你永远是小三 2024-10-30 11:41:15

@Stefan:谢谢...我问这个问题是因为目录结构非常复杂,我无法执行 svn 命令,因为那些目录没有 .svn 目录...我希望你能得到它。但是我得到了解决方案.. .batch 文件读取所有内容,使字符串发生变化,并将其再次写入 svn 文件,但是在重写时,它会在其中添加 CRLF,而 svn 文件只有 LF,所以当任何人再次在这些文件上使用 svn 命令时,他会收到错误...所以我使用 vbscript 更改了文件...现在工作正常

@Stefan: Thanks...I asked this question because Dir structure is so complex that I was not able to execute svn commands as those dir's didnt had .svn dir...I hope ur getting it.However I got the solution...Batch file reads all the contents makes the string changes and writes it again to svn file however while rewriting it adds CRLF in them and svn files have only LF so when anyone again use svn commands on those files he gets error...So I changed the files using vbscript...Now it works fine

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文