[Bps-public-commit] r9087 - in SVKUI: . trunk/share/web/templates/project

clsung at bestpractical.com clsung at bestpractical.com
Wed Sep 19 11:52:53 EDT 2007


Author: clsung
Date: Wed Sep 19 11:52:53 2007
New Revision: 9087

Modified:
   SVKUI/   (props changed)
   SVKUI/trunk/lib/SVKUI/View.pm
   SVKUI/trunk/share/web/templates/project/index.html

Log:
 r9162 at going04:  clsung | 2007-09-19 14:45:24 +0800
 - UI
 r9163 at going04:  clsung | 2007-09-19 23:52:41 +0800
 - though svk list -v //local/xxx will show the corressponding revision, however
   svk blame //local/xxx will not
 - '-x' fix (or suppress) the annotate //local/xxx problem
   - not --remoterev, which works on //mirror instead of copied revision


Modified: SVKUI/trunk/lib/SVKUI/View.pm
==============================================================================
--- SVKUI/trunk/lib/SVKUI/View.pm	(original)
+++ SVKUI/trunk/lib/SVKUI/View.pm	Wed Sep 19 11:52:53 2007
@@ -147,7 +147,11 @@
 	if ($args ne '') {
 	    $ret = $command->cmd($cmd, $rootpath.'/'.$relpath, $args);
 	} else {
-	    $ret = $command->cmd($cmd, $rootpath.'/'.$relpath);
+	    if ($cmd eq 'annotate') {
+		$ret = $command->cmd($cmd, '-x', $rootpath.'/'.$relpath);
+	    } else {
+		$ret = $command->cmd($cmd, $rootpath.'/'.$relpath);
+	    }
 	}
     } else {
 	$ret = $command->cmd('help', 'commands');

Modified: SVKUI/trunk/share/web/templates/project/index.html
==============================================================================
--- SVKUI/trunk/share/web/templates/project/index.html	(original)
+++ SVKUI/trunk/share/web/templates/project/index.html	Wed Sep 19 11:52:53 2007
@@ -44,8 +44,6 @@
 <% $mirror->localrepos %>
 <h4>Click to enter interactive mode</h4>
 <%Jifty->web->link( url => '/ia/'.$mirror->name, label => 'Commands')%>
-<h4>Or click to see checkout-ed files</h4>
-<%Jifty->web->link( url => '/ia2/'.$mirror->name.'/list', label => 'List')%>
 % } else {
 <h4>Click to copy a local branch</h4>
 <%Jifty->web->link( url => '/copy/'.$mirror->name, label => 'Click here')%>
@@ -57,6 +55,8 @@
 <%Jifty->web->link( url => '/ia2/'.$mirror->name.'/checkout', label => 'Checkout')%>
 % } else {
 <% $mirror->revision %>
+<h4>Browse checkout-ed files</h4>
+<%Jifty->web->link( url => '/ia2/'.$mirror->name.'/list', label => 'List')%>
 % }
 
 </div>



More information about the Bps-public-commit mailing list