* tparse/tparse.cpp (parse_rcs_admin): Allow 'symbol<space>:<space>revnum'
as recently added to the python modules. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1062 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
a9f8e7a802
commit
c3a80705ba
|
@ -246,12 +246,19 @@ void tparseParser::parse_rcs_admin()
|
||||||
if (*token == ';')
|
if (*token == ';')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/*FIXME: this does not allow "<tag> : <rev>"
|
|
||||||
which the spec does allow */
|
|
||||||
second = index(token->data, ':');
|
second = index(token->data, ':');
|
||||||
tag.reset(token->copy_begin_len(0, second - token->data));
|
if (second)
|
||||||
second++;
|
{
|
||||||
rev.reset(new rcstoken(second));
|
tag.reset(token->copy_begin_len(0, second - token->data));
|
||||||
|
second++;
|
||||||
|
rev.reset(new rcstoken(second));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tag = token;
|
||||||
|
tokenstream->match(':');
|
||||||
|
rev.reset(tokenstream->get());
|
||||||
|
};
|
||||||
sink->define_tag(*tag, *rev);
|
sink->define_tag(*tag, *rev);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue