From: <dal...@us...> - 2008-01-02 05:24:25
|
Revision: 11505 http://jedit.svn.sourceforge.net/jedit/?rev=11505&view=rev Author: daleanson Date: 2008-01-01 21:24:18 -0800 (Tue, 01 Jan 2008) Log Message: ----------- fix to remove extra / when building url for tag and branch. Modified Paths: -------------- plugins/SVNPlugin/trunk/src/ise/plugin/svn/gui/BrowseRepositoryPanel.java Modified: plugins/SVNPlugin/trunk/src/ise/plugin/svn/gui/BrowseRepositoryPanel.java =================================================================== --- plugins/SVNPlugin/trunk/src/ise/plugin/svn/gui/BrowseRepositoryPanel.java 2008-01-02 05:16:42 UTC (rev 11504) +++ plugins/SVNPlugin/trunk/src/ise/plugin/svn/gui/BrowseRepositoryPanel.java 2008-01-02 05:24:18 UTC (rev 11505) @@ -320,7 +320,7 @@ } }; chooser.addActionListener( al ); - if (full) { + if ( full ) { refresh_btn.addActionListener( al ); } if ( repositoryName != null ) { @@ -593,8 +593,12 @@ Object[] parts = path.getPath(); StringBuilder sb = new StringBuilder(); StringBuilder sb2 = new StringBuilder(); - sb.append( parts[ 0 ] ); - sb2.append( parts[ 0 ] ); + String preface = parts[ 0 ].toString(); + if ( preface.endsWith( "/" ) ) { + preface = preface.substring( 0, preface.length() - 1 ); + } + sb.append( preface ); + sb2.append( preface ); for ( int i = 1; i < parts.length; i++ ) { sb.append( "/" ).append( parts[ i ].toString() ); } @@ -646,8 +650,12 @@ Object[] parts = path.getPath(); StringBuilder sb = new StringBuilder(); StringBuilder sb2 = new StringBuilder(); - sb.append( parts[ 0 ] ); - sb2.append( parts[ 0 ] ); + String preface = parts[ 0 ].toString(); + if ( preface.endsWith( "/" ) ) { + preface = preface.substring( 0, preface.length() - 1 ); + } + sb.append( preface ); + sb2.append( preface ); for ( int i = 1; i < parts.length; i++ ) { sb.append( "/" ).append( parts[ i ].toString() ); } @@ -697,7 +705,7 @@ sb.append( "/" ).append( parts[ i ].toString() ); } url = sb.toString(); - paths.add(url); + paths.add( url ); defaultDestination = url; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |