Re: [Rest2web-develop] timestamps, svn and modtime
Brought to you by:
mjfoord
From: Andrew S. <str...@as...> - 2008-10-04 20:35:35
|
Michael Foord wrote: > Andrew Straw wrote: >> I'm in the process of updating my websites to use rest2web, but I'm >> hitting one problem -- I keep my files under subversion, which seems >> unable to maintain a file's "mtime" ( >> http://subversion.tigris.org/issues/show_bug.cgi?id=1256 ). Thus, when I >> check out the source for my site with svn, the modtimes are all screwed >> up. Does anyone have any solutions? Of course, I could simply remove the >> <% modtime %> from my template, but there must be a better way. >> >> The simplest idea I have at the moment is Python code in my template >> that calls svn and asks for the svn commit time. This could fail >> gracefully to the file systems mtime if the file was not under svn. >> > > I like this idea and I can't think of a better solution off the top of > my head. OK, I did this and wrote it up at http://code.astraw.com/this-website.html |