14

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?

4

4 回答 4

19

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

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

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

甚至,使用这个命令从 TortoiseSVN 执行

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

closeonend 可以是其中之一

/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 
于 2009-12-31T03:54:51.390 回答
3

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

于 2009-12-31T03:53:19.477 回答
2

当连接断开时弹出窗口仍然存在同样的问题,所以我只是安装了一个命令行版本的 svn 并使用 Windows 批处理脚本检查返回的 ERRORLEVEL

于 2010-08-24T01:31:22.573 回答
0

Microsoft 任务计划程序或 CRONw

于 2009-12-31T03:52:22.113 回答