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

[whimsy] branch master updated: update path on checkout

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

rubys 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  7769fa3   update path on checkout
7769fa3 is described below

commit 7769fa3511644f8e8168d9b421530a95305ed548
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Aug 26 08:39:35 2016 -0400

    update path on checkout
---
 www/status/svn.cgi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/status/svn.cgi b/www/status/svn.cgi
index 59c31a0..0830ee7 100755
--- a/www/status/svn.cgi
+++ b/www/status/svn.cgi
@@ -80,8 +80,9 @@ _html do
     // update status of a row based on a sever response
     function updateStatus(tr, response) {
       var tds = $('td', tr);
-      tds[2].textContent = response.local;
-      tds[3].textContent = response.server;
+      if (response.path) tds[1].textContent = response.path;
+      if (response.local) tds[2].textContent = response.local;
+      if (response.server) tds[3].textContent = response.server;
 
       // update row color
       if (tds[2].textContent != tds[3].textContent) {
@@ -174,6 +175,7 @@ _json do
 
   {
     log: log.to_s.split("\n"),
+    path: local_path,
     local: `svn info #{local_path.untaint}`[/^Revision: (.*)/, 1],
     server: `svn info #{repository_url.untaint}`[/^Revision: (.*)/, 1]
   }

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