[英]Can't get SVN update to resolve conflict on Linux Server
I am using SVN update to update my web directory on my linux server. 我正在使用SVN更新来更新我的Linux服务器上的Web目录。 when I do an sudo svn update it says theres a conflict.
当我执行sudo svn更新时,它说存在冲突。 i choose the accept theirs full option which Im assuming it should pull the full repo file but it never seems to replace the file.
我选择接受他们的完整选项,我以为我假设它应该提取完整的回购文件,但它似乎永远不会替换该文件。 SVN reports update status G but the file remains the same.
SVN报告更新状态为G,但文件保持不变。
what is going on, how do i get the depot version. 这是怎么回事,我如何获得软件仓库版本。 This is on a server so there should never be a modified file or conflict to begin with.
这是在服务器上,因此一开始就永远不会有修改过的文件或冲突。
Revert all local modifications (and conflicts) after update: 更新后还原所有本地修改(和冲突):
svn revert -R <path>
Be careful, it wipe all your local changes 小心,它会擦掉您所有的本地更改
It turns out what I was doing was correct, but their was an old cron job I wasn't aware of that was updating the file on the server outside of SVN. 事实证明我在做的事是正确的,但他们是我不知道的旧cron作业,正在更新SVN之外的服务器上的文件。 So everytime I committed a change it was overwritten by a cron job kicking off an rsynch.
因此,每次我提交更改时,启动rsynch的cron作业都会覆盖它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.