Question

Im trying to put together a nightly build and would like subversion to export .sql files from our repo dynamically based on everything committed to the branch in the last 24 hours.

Is this possible? I know I can get the logs to check between date ranges, but I want that range to move on 24 hours each time. I'm using bash as a build script.

thanks

Was it helpful?

Solution

  1. Read SVN Book, "Revision Specifiers" chapter, and "Is Subversion a Day Early?" section most carefully
  2. Read man date page

After 1+2 you will be able to get needed datetimes for using in svn log -r {$FROM}:{$TO} (and check and skip first log, if it will be out of range)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top