You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2016/08/24 12:27:33 UTC

[whimsy] branch master updated: Cache the old file contents to allow change analysis

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  2346161   Cache the old file contents to allow change analysis
2346161 is described below

commit 234616120b41a2ef2763a86e4e3570667f9d850a
Author: Sebb <se...@apache.org>
AuthorDate: Wed Aug 24 13:24:30 2016 +0100

    Cache the old file contents to allow change analysis
---
 www/roster/public_json_common.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/roster/public_json_common.rb b/www/roster/public_json_common.rb
index 429f299..9bfcd13 100644
--- a/www/roster/public_json_common.rb
+++ b/www/roster/public_json_common.rb
@@ -116,7 +116,7 @@ end
 # Write formatted output to specific file
 def write_output(file, results)
 
-  if not File.exist?(file) or removeTimestamps(File.read(file).chomp) != removeTimestamps(results)
+  if not File.exist?(file) or (@old_file=File.read(file).chomp; removeTimestamps(old_file)) != removeTimestamps(results)
 
     Wunderbar.info "git_info: #{GITINFO} - creating/updating #{file}"
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].