You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Collins-Sussman <su...@newton.ch.collab.net> on 2001/03/13 13:58:58 UTC

wc props

Hey gstein -- I'm mainly addressing this question to you, since you're
the one who needs "wc properties".  (As refresher, go read Change #3
in STACK.)

My question is, "what's the best way to implement wc props"?

In change #3, we suggest creating two special editor routines.  During
an update or checkout, the ra layer uses them to tell the wc that the
props are "special wc" ones.  During a commit, the client sends the wc
props back to the ra layer, again using the special routines to
indicate that these aren't ordinary props.

Wouldn't it be simpler if we just used the editor's existing
change_*_prop functions to communicate wc props in both directions?

  * in the ra_dav commit editor, you could scan the incoming propname
    for a special wc-prop-prefix (like "svn:wc:...") and treat the
    it as a special case.

  * in the wc update editor, we pay no attention whatsoever;  we store
    the prop like any other.

  * in crawl_local_mods, we look for any props with the svn:wc: prefix
    and send them via normal propset methods.

I guess I'd rather not add more stuff to the editor if we can agree to
recognize special propnames instead.