[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

AW: AW: chcp has no effect on output encoding for chcp

From: Matthias Ludwig <matthias-ludwig_at_gmx.net>
Date: Thu, 10 Sep 2015 16:43:02 +0200

I'll try to do extends the javahl interface, when I have some time for that and send it to dev@.

> or just call svnlook directly.
I tried allready, but you can't get svnlook to use a certain encoding. (windows change code page chcp has no effect)

Matthias
-----Ursprüngliche Nachricht-----
Von: Branko Čibej [mailto:brane_at_wandisco.com]
Gesendet: Dienstag, 8. September 2015 14:17
An: users_at_subversion.apache.org
Betreff: Re: AW: chcp has no effect on output encoding for chcp

On 08.09.2015 14:00, Matthias Ludwig wrote:
> Thank you for the tip, I will check this.
> I did not find any method in javahl. Did I missed it?

No; JavaHL does not have bindings for the svn_fs API. It does have bindings that emulate svnadmin, but not svnlook.

> Could I write the JNDI-Binding myself?

(I guess you mean JNI). You could, of course. You can start by looking at

   
subversion/bindings/javahl/src/org/apache/subversion/javahl/SVNRepos.java

and adding methods that expose svnlook features. If you do, please send patches to our dev@ list, we'd surely want to include these features.

Be aware that the JavaHL implementation is not the cleanest or most obvious code, though ...

> Or do I have to use phyton?

You can use Python or Perl or Ruby, or of course C, or just call svnlook directly.

-- Brane

> -----Ursprüngliche Nachricht-----
> Von: Daniel Shahaf [mailto:d.s_at_daniel.shahaf.name]
> Gesendet: Montag, 7. September 2015 23:26
> An: Matthias Ludwig <matthias-ludwig_at_gmx.net>
> Cc: users_at_subversion.apache.org
> Betreff: Re: chcp has no effect on output encoding for chcp
>
> Matthias Ludwig wrote on Mon, Sep 07, 2015 at 11:45:13 +0200:
>> The use of the subversion language bindings is no alternative because
>> there exists no language bindings for svnlook.
> svnlook just wraps the svn_fs/svn_repos APIs, which do have bindings:
>
> % python2
> >>> from svn.fs import *
> >>> from svn.repos import *
> >>> fs = svn_repos_fs(svn_repos_open("/tmp/r"))
> >>> svn_fs_youngest_rev(fs)
> 0L
>
> (The repository was empty, i.e., zero revisions.)
>
Received on 2015-09-10 16:43:15 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.