开发者

How do i schedule auto svn update in linux without conflicts?

Sinc开发者_运维技巧e i have more than 10 linux boxes I have scheduled a cron job that updates my code base at regular interval.

It does work without any problem as long as the files dont change on the server(linux boxes). But when they do, i get conflict error. If i do the update manually i get a prompt to overwrite the changes. But since it is done via crontab i am not sure how to handle this.

I even tried --force option, but it still prompts for the action. I want the changes to be overwritten with the latest svn version.

Any idea on this?


You can use

svn update --accept=theirs-full

furthermore you should consider to think about using a different tool like already mentioned rsync ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜