|
From: Nicholas N. <nj...@cs...> - 2005-07-20 05:27:30
|
Hi, The nightly tests would be much more useful if they told us how the results for each machine changed since the previous night. I want to change the script so it checks out the current HEAD, and the HEAD from 24 hours ago, and tests both and shows the difference in results. CVS has a nice -D flag, where you can ask to check out the HEAD from 24 hours ago. AFAICT Subversion doesn't have this; you can specify a date to check out from, but it always checks out the repo from midnight on that day, which isn't precise enough. The only way I can see how to do it with Subversion is look at the "svn log" output and work out which revision number applies to 24 hours ago, but that requires parsing that output and futzing with dates to work out when 24 hours ago was and it all sounds horrible. Can anyone think of a better way to do it? Thanks. N |
|
From: Tom H. <to...@co...> - 2005-07-20 06:14:59
|
In message <Pin...@ch...>
Nicholas Nethercote <nj...@cs...> wrote:
> CVS has a nice -D flag, where you can ask to check out the HEAD from 24
> hours ago. AFAICT Subversion doesn't have this; you can specify a date
> to check out from, but it always checks out the repo from midnight on that
> day, which isn't precise enough.
You can specify a time as well:
svn co svn://svn.valgrind.org/valgrind/trunk -r '{2005-07-19T07:11}' valgrind
so this should do:
svn co svn://svn.valgrind.org/valgrind/trunk \
-r {`date --date=yesterday +%Y-%m-%dT%H:%M:%S`} \
valgrind
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Nicholas N. <nj...@cs...> - 2005-07-20 13:16:34
|
On Wed, 20 Jul 2005, Tom Hughes wrote: > You can specify a time as well: > > svn co svn://svn.valgrind.org/valgrind/trunk -r '{2005-07-19T07:11}' valgrind > > so this should do: > > svn co svn://svn.valgrind.org/valgrind/trunk \ > -r {`date --date=yesterday +%Y-%m-%dT%H:%M:%S`} \ > valgrind Aha! Thanks, Tom. N |