Custom subversion commands?
Posted: Mon Oct 30, 2006 8:02 am
Is it possible to create a new command in subversion which anybody who checked out a given repository defining the command can run?
The basic reason is that we have a cluster of servers which all need the same "live" code base on them and updating them can be a tedious task of going to the server via SSH and running "svn update" on each one to pull in the latest version.
I could set up a cron job to do this but that gives us less control over how we trigger an update to the code base on the servers.
I was wanting to create a command we can run locally such as "svn golive" and then the server can trigger some shell script or such like when the command is run.
I know there are other options such as having a "live" branch and just merging changes into that and letting cron pull those changes in periodically across our cluster but I'm more curious if what I was thinking is possible?
The basic reason is that we have a cluster of servers which all need the same "live" code base on them and updating them can be a tedious task of going to the server via SSH and running "svn update" on each one to pull in the latest version.
I could set up a cron job to do this but that gives us less control over how we trigger an update to the code base on the servers.
I was wanting to create a command we can run locally such as "svn golive" and then the server can trigger some shell script or such like when the command is run.
I know there are other options such as having a "live" branch and just merging changes into that and letting cron pull those changes in periodically across our cluster but I'm more curious if what I was thinking is possible?