forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdupoiri...@apache.org
Subject svn commit: r443277 - in /forrest/trunk/tools/forrestbar/xpi/chrome/content: forrestbarOverlay.js forrestbarOverlay.xul
Date Thu, 14 Sep 2006 07:34:26 GMT
Author: cdupoirieux
Date: Thu Sep 14 00:34:24 2006
New Revision: 443277

URL: http://svn.apache.org/viewvc?view=rev&rev=443277
Log:
Add the SVN Revision option in the search menu.
This displays the searched revision page to know which file were commited.
This complete the http://svn.apache.org/viewvc?view=rev&revision=441431.

Modified:
    forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js
    forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul

Modified: forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js
URL: http://svn.apache.org/viewvc/forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js?view=diff&rev=443277&r1=443276&r2=443277
==============================================================================
--- forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js (original)
+++ forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js Thu Sep 14 00:34:24
2006
@@ -88,6 +88,12 @@
   navigate('http://www.google.com/search?sitesearch=forrest.apache.org&q=' + searchItem.value
+'&Search=Search');
 }
 
+function searchSVN(searchID)
+{
+  var searchedRev = document.getElementById(searchID);
+  navigate('http://svn.apache.org/viewvc?view=rev&revision=' + searchedRev.value );
+}
+
 function contract(subUrl,searchID)
 {
   var searchItem = document.getElementById(searchID);

Modified: forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul
URL: http://svn.apache.org/viewvc/forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul?view=diff&rev=443277&r1=443276&r2=443277
==============================================================================
--- forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul (original)
+++ forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul Thu Sep 14 00:34:24
2006
@@ -119,6 +119,7 @@
             <menuitem label="Commits (The Mail Archive)" onclick="searchCommits('mailArchive',
'forrestbar-input');" hidden="false"/>
             <menuitem label="Forrest Site" onclick="searchSite('forrestbar-input');" hidden="false"/>
             <menuitem label="JIRA Issues" onclick="searchIssue('forrestbar-input');" hidden="false"/>
+            <menuitem label="SVN Revision" onclick="searchSVN('forrestbar-input');" hidden="false"/>
           </menupopup>
         </toolbarbutton>
         <toolbarseparator/>



Mime
View raw message