List Info

Thread: SVNKit 1.1.3 Behaviour file/http protocol




SVNKit 1.1.3 Behaviour file/http protocol
user name
2007-06-23 16:50:38
Dear Sirs,

i have created a program using the SVNKit library which will
analyze log
entries of a repository.

But i have made the experience that the following part of my
application
is behaving differently if i use the http protocol or the
file protocol:

The relevant code part:
----------------------- START -------------------------
	private static void doTheBlame(String url, long
startRevision,
ISVNAuthenticationManager authManager) throws SVNException
{
		SVNLogClient logClient =
getClientManager(authManager).getLogClient();
        ISVNAnnotateHandler handler = new SVNHistory();

        SVNRevision zero =
SVNRevision.create(startRevision);
        SVNRevision start =
SVNRevision.create(startRevision);
        SVNRevision end =
SVNRevision.create(startRevision);
        try {
        	System.out.println("Checking file: " +
repositoryURL + url);
           
logClient.doAnnotate(SVNURL.parseURIEncoded(repositoryURL +
url), zero, start, end, false, handler, null);
        } catch (SVNException e) {
            if (e.getMessage() != null &&
e.getMessage().indexOf("binary") >= 0) {
                System.out.println("Skipping binary
file: '" + url + "'");
            } else {
                throw e;
            }
        }
	}
----------------------- STOP -------------------------
If i use the file protocol to access the repository as with
http the
doAnnotate does not produce an SVNException with the
"binary" word in there.

I have to assume that i should check the properties of the
file to
figure out if the particular file is binary or not but this
seemed to be
getting much faster...

My opinion is that there should no difference in behaviour
if i use file
or http protocol.


So my question is this a Bug in your opinion ?

Thanks in advance for your help..

Kind regards
Karl Heinz Marbaise

-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405
/ 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr:
DE191347579
52146 Würselen                           http://www.soebes.de

------------------------------------------------------------
---------
To unsubscribe, e-mail: svnkit-users-unsubscribesvnkit.com
For additional commands, e-mail: svnkit-users-helpsvnkit.com


Re: SVNKit 1.1.3 Behaviour file/http protocol
user name
2007-06-25 05:58:22
Hello Karl,

It must be fixed in trunk in revision 3180. You always can
get a nightly 
build from https://teamcity.svnkit.c
om (follow artifacts link for 
svnkit.trunk project). If something keeps on going wrong,
please, report 
it to us. Thank you!

----
Alexander Sinyushkin,
TMate Software,
http://svnkit.com/ - Java
[Sub]Versioning Library!

Karl Heinz Marbaise wrote:
> Dear Sirs,
> 
> i have created a program using the SVNKit library which
will analyze log
> entries of a repository.
> 
> But i have made the experience that the following part
of my application
> is behaving differently if i use the http protocol or
the file protocol:
> 
> The relevant code part:
> ----------------------- START
-------------------------
> 	private static void doTheBlame(String url, long
startRevision,
> ISVNAuthenticationManager authManager) throws
SVNException {
> 		SVNLogClient logClient =
getClientManager(authManager).getLogClient();
>         ISVNAnnotateHandler handler = new
SVNHistory();
> 
>         SVNRevision zero =
SVNRevision.create(startRevision);
>         SVNRevision start =
SVNRevision.create(startRevision);
>         SVNRevision end =
SVNRevision.create(startRevision);
>         try {
>         	System.out.println("Checking file: "
+ repositoryURL + url);
>            
logClient.doAnnotate(SVNURL.parseURIEncoded(repositoryURL +
> url), zero, start, end, false, handler, null);
>         } catch (SVNException e) {
>             if (e.getMessage() != null &&
> e.getMessage().indexOf("binary") >= 0) {
>                 System.out.println("Skipping
binary file: '" + url + "'");
>             } else {
>                 throw e;
>             }
>         }
> 	}
> ----------------------- STOP -------------------------
> If i use the file protocol to access the repository as
with http the
> doAnnotate does not produce an SVNException with the
"binary" word in there.
> 
> I have to assume that i should check the properties of
the file to
> figure out if the particular file is binary or not but
this seemed to be
> getting much faster...
> 
> My opinion is that there should no difference in
behaviour if i use file
> or http protocol.
> 
> 
> So my question is this a Bug in your opinion ?
> 
> Thanks in advance for your help..
> 
> Kind regards
> Karl Heinz Marbaise
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: svnkit-users-unsubscribesvnkit.com
For additional commands, e-mail: svnkit-users-helpsvnkit.com


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )