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:br...@wandisco.com] Gesendet: Dienstag, 8. September 2015 14:17 An: users@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...@daniel.shahaf.name] > Gesendet: Montag, 7. September 2015 23:26 > An: Matthias Ludwig <matthias-lud...@gmx.net> > Cc: users@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.) >