You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yannick Menager <ya...@fastmail.fm> on 2004/09/22 18:25:10 UTC
javah: finding out the latest version of a repository url
I'm working on a svn synchronization application, using javah. However there
does not seem to be an API to get the latest version of a directory in the
repository, without doing a checkout first :( which is bad because i need to do
all my operations remotely without having to checkout the whole tree.
I am missing something, or if I am not, is there any reason why the API is not
there ( if there isn't, i'll go add a RFE )
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: javah: finding out the latest version of a repository url
Posted by Yannick <ya...@fastmail.fm>.
My program does a mirror all the commits that were done in the svn repos
into a Dimensions ( which is a joke of a version control system, but
which we have to use ) repository, and also updates the svn repos from
changes made in Dimensions.
The Java API only has one type of API, which I guess is based on the
client one ( see
http://svn.collab.net/repos/svn/trunk/subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/SVNClient.java
).
Ben Collins-Sussman wrote:
> [Please keep the dev@ list cc'd]
>
>
> On Sep 22, 2004, at 5:43 PM, Yannick wrote:
>
>> I'm using the Java Bindings, not the C one
>>
>
> That's not enough information. I want to know what your program does,
> and what API you're using. There's a client API. There's a network
> API. There's an API for reading the repository directly. At what
> level is your program hooking into Subversion?
>
> My recollection is that the javahl API is nothing but a port of
> svn_client.h. Is that correct?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: javah: finding out the latest version of a repository url
Posted by Ben Collins-Sussman <su...@collab.net>.
[Please keep the dev@ list cc'd]
On Sep 22, 2004, at 5:43 PM, Yannick wrote:
> I'm using the Java Bindings, not the C one
>
That's not enough information. I want to know what your program does,
and what API you're using. There's a client API. There's a network
API. There's an API for reading the repository directly. At what
level is your program hooking into Subversion?
My recollection is that the javahl API is nothing but a port of
svn_client.h. Is that correct?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: javah: finding out the latest version of a repository url
Posted by Ben Collins-Sussman <su...@collab.net>.
On Sep 22, 2004, at 1:25 PM, Yannick Menager wrote:
> I'm working on a svn synchronization application, using javah. However
> there
> does not seem to be an API to get the latest version of a directory in
> the
> repository, without doing a checkout first :( which is bad because i
> need to do
> all my operations remotely without having to checkout the whole tree.
>
> I am missing something, or if I am not, is there any reason why the
> API is not
> there ( if there isn't, i'll go add a RFE )
>
>
What APIs are you looking at? Try svn_ra.h for network access.
RA->get_youngest_revnum(). There's also a similar API in svn_fs.h, if
you're accessing the repository directly, which it sounds like you're
doing.
I'm not sure what you mean by "the latest version of a directory". Are
you talking about a working copy? A repository? Please explain what
you're trying to do in more detail.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: javah: finding out the latest version of a repository url
Posted by Yannick Menager <ya...@fastmail.fm>.
Well, it's *almost* what i need. Problem is it lists the _children_ of a
directory, and not the directory itself. I would have to adquire the
parent, list everything... etc... but even then it wouldn't work if i
was trying to get the root of the repository ( http://svn.somewhere.com/
for example ).
Patrick Mayweg wrote:
> Hi Yannick
>
> Yannick Menager wrote:
>
>> I'm working on a svn synchronization application, using javah. However
>> there
>> does not seem to be an API to get the latest version of a directory in
>> the
>> repository, without doing a checkout first :( which is bad because i
>> need to do
>> all my operations remotely without having to checkout the whole tree.
>>
>>
>>
> I think you use the javahl language binding. Did you try the
> SVNClientInterface.list method? That should tell you the last revision
> of a directory.
>
>> I am missing something, or if I am not, is there any reason why the
>> API is not
>> there ( if there isn't, i'll go add a RFE )
>>
>>
>>
> Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: javah: finding out the latest version of a repository url
Posted by Patrick Mayweg <ma...@qint.de>.
Hi Yannick
Yannick Menager wrote:
>I'm working on a svn synchronization application, using javah. However there
>does not seem to be an API to get the latest version of a directory in the
>repository, without doing a checkout first :( which is bad because i need to do
>all my operations remotely without having to checkout the whole tree.
>
>
>
I think you use the javahl language binding. Did you try the
SVNClientInterface.list method? That should tell you the last revision
of a directory.
>I am missing something, or if I am not, is there any reason why the API is not
>there ( if there isn't, i'll go add a RFE )
>
>
>
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org