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

Re: Problems with Ruby bindings (propget)

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: Wed, 28 Jan 2009 07:33:02 -0800

Hi Michael,

On Sun, Jan 25, 2009 at 11:21 PM, Michael Selbermann
<HDM_RD-AS5.1_at_gmx.de> wrote:
> Hi,
>
> I'm sorry. A colleague informed me that I should not post without my real name. So again my question:
>
> I have a problem using the ruby bindings:
>
> Using the propget method is possible, but I only get the correct answer from a directory which has
> the properties in the repository. Properties which has been set, but not committed, cannot be read by the propget method.
>

>
> ruby call:
> ctx = Svn::Client::Context.new
> result = ctx.propget( svn:externals, "d:\MyWorkingCopy\TopDir\AllSubDirs" )
> ==> result = {}
>
> I played around with the rev, peg_rev,... but I didn't have any success.
>
> Any Ideas?
>

Try:

Svn::Wc::AdmAccess.open(nil, "d:\\MyWorkingCopy\\TopDir\\AllSubDirs")
do |access|
  result = access.prop('svn:externals,"d:\\MyWorkingCopy\\TopDir\\AllSubDirs")
end

--
Joe
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1063458
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-28 16:33:55 CET

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.