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

RA->get_file

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-02-07 19:29:07 CET

Hey gstein (and others),

I'm changing the docstring promise on RA->get_file(). Specifically,
it's going to return *all* properties to the caller, not just 'fs'
properties.

For ra_local, the change was easy. I just added some 'svn:entry:'
props into the hash. ra_local has no 'svn:wc' props to store.

For ra_dav, I'm having more trouble. svn_ra_dav__get_file grabs all
props from the server into a rsrc object:

    get all props into prophash
    create newhash

    foreach prop in prophash:
      if prop has 'svn:custom:' prefix,
         strip prefix and store in newhash. /* 'normal' fs props */
      else
         if prop matches one of the DAV: entryprops,
           convert to correct svn:entry: name, store in newhash.
         if prop matches one of the DAV: wcprops,
           convert to correct svn:wc: name, store in newhash.

Now, the first conversion going on -- the svn:entry: names -- is
already in a single function. That function already existed, so now
it has a second caller. But I'm confused about how to do the 'wcprop'
conversions. Is that mapping already laid out somewhere? Heck, I'm
not even fully aware of all the svn:wc: props that exist. Can I have
some pointers?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:05 2006

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

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