SVN 中的条目文件有问题
我正在尝试从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
永远不要弄乱你不理解的数据!
你问错问题了!您询问如何弄乱条目文件,但这只是因为您正在尝试做其他事情。总是在你最初要做的事情上寻求帮助,而不是在你尝试以某种方式去做时遇到的问题寻求帮助——可能有更好的方法。
相反,您应该询问如何将工作副本指向另一个 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
@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