是否可以安排 svn 更新?

发布于 2024-08-16 07:01:57 字数 180 浏览 4 评论 0原文

我使用 eclipse galileo 和 subversive 插件或 Tortoise SVN 来进行更新。

可以安排自动更新(例如每天晚上)吗? 如果是,是否可以将其配置为仅更新非冲突文件?

I use eclipse galileo with subversive plugin or Tortoise SVN to do an update.

It is possible to schedule an auto-update (eg. every night)?
If yes, is it possible to configure it to just update the non-conflicting files?

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

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

发布评论

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

评论(4

小霸王臭丫头 2024-08-23 07:01:57

我通过计划任务使用此命令 - 这假设您安装了 Silksvn (但任何 svn 客户端都会执行此操作)

"C:\Program Files\SlikSvn\bin\svn" update --accept postpone d:\SourceCode >> c:\svn.log

它只会更新不冲突的文件,因此不用担心。

或者甚至,使用此命令 closeonend 从 TortoiseSVN 执行此操作

C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe /command:update /path:d:\sourcecode /closeonend:1

可以是其中之一

/closeonend:0 don't close the dialog automatically 

/closeonend:1 auto close if no errors 

/closeonend:2 auto close if no errors and conflicts 

/closeonend:3 auto close if no errors, conflicts and merges 

/closeonend:4 auto close if no errors, conflicts and merges for local operations 

I use this command via a scheduled task - this assumes you have Silksvn installed (but any svn client will do this)

"C:\Program Files\SlikSvn\bin\svn" update --accept postpone d:\SourceCode >> c:\svn.log

It will only update files that aren't conflicting also, so no worry about that.

OR even, do it from TortoiseSVN using this command

C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe /command:update /path:d:\sourcecode /closeonend:1

closeonend can be one of these

/closeonend:0 don't close the dialog automatically 

/closeonend:1 auto close if no errors 

/closeonend:2 auto close if no errors and conflicts 

/closeonend:3 auto close if no errors, conflicts and merges 

/closeonend:4 auto close if no errors, conflicts and merges for local operations 
仅一夜美梦 2024-08-23 07:01:57

只需安排一个任务每晚运行一个批处理文件即可。批处理文件只是使用 Subversion 命令行客户端调用 svn 更新。很简单,对吧?

Just schedule a task to run a batch file every night. The batch file just calls an svn update using a Subversion command line client. Simple enough, right?

紫﹏色ふ单纯 2024-08-23 07:01:57

当连接断开时,我遇到了同样的问题,弹出窗口挥之不去,所以我只是安装了 svn 的命令行版本,并使用 Windows 批处理脚本检查返回的 ERRORLEVEL

I had the same problem with the popup lingering when the connection dropped, so I just installed a command line version of svn and checked the returned ERRORLEVEL using a Windows batch script

洒一地阳光 2024-08-23 07:01:57

Microsoft 任务计划程序或 CRONw

Microsoft Task Scheduler or CRONw

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