You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2012/06/07 22:59:02 UTC
svn commit: r1347794 - /subversion/trunk/subversion/libsvn_ra_serf/xml.c
Author: gstein
Date: Thu Jun 7 20:59:02 2012
New Revision: 1347794
URL: http://svn.apache.org/viewvc?rev=1347794&view=rev
Log:
Implement wildcard state transitions.
* subversion/libsvn_ra_serf/xml.c:
(svn_ra_serf__xml_cb_start): we found the right transition when the
name is "*" (and by convention, the namespace will be "*", too)
Modified:
subversion/trunk/subversion/libsvn_ra_serf/xml.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/xml.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/xml.c?rev=1347794&r1=1347793&r2=1347794&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/xml.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/xml.c Thu Jun 7 20:59:02 2012
@@ -560,6 +560,11 @@ svn_ra_serf__xml_cb_start(svn_ra_serf__x
if (scan->from_state != current->state)
continue;
+ /* Wildcard tag match. */
+ if (*scan->name == '*')
+ break;
+
+ /* Found a specific transition. */
if (strcmp(elemname.name, scan->name) == 0
&& strcmp(elemname.namespace, scan->ns) == 0)
break;