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

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


The following commit(s) were added to refs/heads/master by this push:
     new 51f135b  Use last changed revision as that is more important
51f135b is described below

commit 51f135b6bc99e834fe25569b8f39667a73d96b1b
Author: Sebb <[email protected]>
AuthorDate: Fri Dec 13 18:03:04 2019 +0000

    Use last changed revision as that is more important
---
 www/status/svn.cgi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/www/status/svn.cgi b/www/status/svn.cgi
index 5482361..9be7b48 100755
--- a/www/status/svn.cgi
+++ b/www/status/svn.cgi
@@ -36,8 +36,8 @@ _html do
       _tr do
         _th 'repository'
         _th 'local path'
-        _th 'local revision'
-        _th 'server revision'
+        _th 'local last changed revision'
+        _th 'server last changed revision'
       end
     end
 
@@ -48,7 +48,7 @@ _html do
         color = nil
 
         if local
-          rev = `svn info #{local}`[/^Revision: (.*)/, 1]
+          rev = ASF::SVN.getInfoItem(local,'last-changed-revision')
           writable &&= File.writable?(local)
         else
           color = 'bg-danger'
@@ -177,9 +177,9 @@ _json do
     end
   end
 
-  localrev, lerr = ASF::SVN.getRevision(local_path.untaint)
+  localrev, lerr = 
ASF::SVN.getInfoItem(local_path.untaint,'last-changed-revision')
   if repository_url
-    serverrev, serr = ASF::SVN.getRevision(repository_url.untaint)
+    serverrev, serr = 
ASF::SVN.getInfoItem(repository_url.untaint,'last-changed-revision')
     {
       log: log.to_s.split("\n"),
       path: local_path,

Reply via email to