Is it possible to schedule an svn update?
Asked Answered
G

4

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?

Gona answered 31/12, 2009 at 3:49 Comment(1)
Primo, this is a superuser.com question, Secundo, it's a question about the OS, not Subversion/Eclipse.Monetary
M
19

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 
Mcclure answered 31/12, 2009 at 3:54 Comment(2)
Anyone have it where the /closeonend param doesn't actually close the dialog? We set it to :1, but there are connection errors about once a day that cause errors, so it ends up hanging all the svn updates to our QA server.Skippet
/closeonend:0 keeps the dialog open, as the answer says.Witter
T
3

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?

Trexler answered 31/12, 2009 at 3:53 Comment(0)
B
2

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

Belkisbelknap answered 24/8, 2010 at 1:31 Comment(0)
K
0

Microsoft Task Scheduler or CRONw

Karriekarry answered 31/12, 2009 at 3:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.