* 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-e597b4017df7
remotes/tags/1.0.0-rc1
dionisos 2005-05-01 15:00:26 +00:00
parent a9f8e7a802
commit c3a80705ba
1 changed files with 12 additions and 5 deletions

View File

@ -246,12 +246,19 @@ void tparseParser::parse_rcs_admin()
if (*token == ';')
break;
/*FIXME: this does not allow "<tag> : <rev>"
which the spec does allow */
second = index(token->data, ':');
tag.reset(token->copy_begin_len(0, second - token->data));
second++;
rev.reset(new rcstoken(second));
if (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);
}
continue;