Date: Wed, 26 Dec 2007 10:17:11 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 131672 for review Message-ID: <200712261017.lBQAHBWe063083@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131672 Change 131672 by peter@peter_overcee on 2007/12/26 10:16:55 checkpoint hack for $FreeBSD$. Affected files ... .. //depot/projects/hammer/contrib/subversion/subversion/libsvn_subr/subst.c#2 edit Differences ... ==== //depot/projects/hammer/contrib/subversion/subversion/libsvn_subr/subst.c#2 (text+ko) ==== @@ -374,6 +374,16 @@ for (i = 0; i < keyword_tokens->nelts; ++i) { const char *keyword = APR_ARRAY_IDX(keyword_tokens, i, const char *); + const char *replaced_word = keyword; + + apr_array_header_t *keyword_tokens2; + keyword_tokens2 = svn_cstring_split(keyword, "=", TRUE /* chop */, pool); + + if (keyword_tokens2->nelts==2) + { + keyword = APR_ARRAY_IDX(keyword_tokens2, 1, const char*); + replaced_word = APR_ARRAY_IDX(keyword_tokens2, 0, const char*); + } if ((! strcmp(keyword, SVN_KEYWORD_REVISION_LONG)) || (! strcmp(keyword, SVN_KEYWORD_REVISION_MEDIUM)) @@ -428,7 +438,7 @@ id_val = keyword_printf("%b %r %d %a", rev, url, date, author, pool); - apr_hash_set(*kw, SVN_KEYWORD_ID, + apr_hash_set(*kw, replaced_word, APR_HASH_KEY_STRING, id_val); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712261017.lBQAHBWe063083>