Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to schedule an svn update?

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?

like image 644
Gaurav Avatar asked Dec 31 '09 03:12

Gaurav


People also ask

How does svn update work?

svn update brings changes from the repository into your working copy. If no revision is given, it brings your working copy up-to-date with the HEAD revision. Otherwise, it synchronizes the working copy to the revision given by the --revision option.

What is difference between commit and update in svn?

Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.

Which command is used to update to the latest revision svn?

Simply type svn update [name-of-directory] , or cd to that directory and type svn update there.


1 Answers

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 
like image 60
PostMan Avatar answered Sep 20 '22 14:09

PostMan