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

wc props

From: Ben Collins-Sussman <sussman_at_newton.ch.collab.net>
Date: 2001-03-13 14:58:58 CET

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.
Received on Sat Oct 21 14:36:25 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.