mergeinfo terminology
From: David Glasser <glasser_at_davidglasser.net>
Date: 2007-12-18 19:28:42 CET
Writing code that uses mergeinfo is very confusing. This is because
(a) a string representation of a single target's mergeinfo (as svn_string_t *)
(b) a hash representation of a single target's mergeinfo (as a hash
(c) a hash mapping target paths (const char *) to (a)
(d) a hash mapping target paths (const char *) to (b)
I think at the very least we need to come up with consistent
(a) "unparsed mergeinfo"
(b) "mergeinfo" (or "parsed mergeinfo" to be explicit)
(c) "unparsed mergeinfo catalog" (but we perhaps should avoid this
(d) "mergeinfo catalog"
Additionally, I think we should consider making typedefs for (b) and (d):
typedef apr_hash_t *svn_mergeinfo_t;
While these typedefs won't provide any extra static type-checking (if
Bikeshed away.
--dave
-- David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Tue Dec 18 19:28:54 2007 |
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.