You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Conor MacNeill <co...@cenqua.com> on 2004/12/10 13:55:11 UTC

[PATCH] Provide client interface to resolve revisions to revision numbers

Hi,

I'm currently working on some code which accesses a Subversion 
repository as a client but without maintaining a local working copy.

I could not find a simple way, in the current client API, to ask for the 
current HEAD revision number. I can get it by asking for the log message 
associated with Revision.HEAD, but I thought a more obvious client 
function would be better. This patch adds that ability. It allows any 
non-numeric kind of revision to be resolved to a revision number. 
Mostly this is just a wrapper around the existing private function.

As I'm a relative newbie with Subversion development, it's probable that 
I missed some obvious way to do this with the existing API. If so, 
please just disregard the patch and enlighten me :)

Thanks - let me know what you think.
Conor

Re: [PATCH] Provide client interface to resolve revisions to revision numbers

Posted by Ben Collins-Sussman <su...@collab.net>.
On Dec 10, 2004, at 7:55 AM, Conor MacNeill wrote:
>
> As I'm a relative newbie with Subversion development, it's probable 
> that I missed some obvious way to do this with the existing API. If 
> so, please just disregard the patch and enlighten me :)
>

Enlightenment:  open an RA session to a URL, then call 
RA->get_youngest_rev().  :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org