* viewcvs/lib/vclib/ccvs/rcsparse/common.py

(_Parser.parse_rcs_tree): Support author which contain spaces.  It's
    a Windows CVS thing ... *shrug*.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@812 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
cmpilato 2004-03-15 20:39:43 +00:00
parent 8a8a587963
commit 1bfa20c8be
1 changed files with 8 additions and 5 deletions

View File

@ -155,11 +155,14 @@ class _Parser:
timestamp = compat.timegm(tuple(date_fields))
# Parse author
semi, author, sym = self.ts.mget(3)
if sym != 'author':
raise RCSExpected(sym, 'author')
if semi != ';':
raise RCSExpected(semi, ';')
self.ts.match('author')
author = ''
while 1:
token = self.ts.get()
if token == ';':
break
author = author + token + ' '
author = author[:-1] # toss the trailing space
# Parse state
self.ts.match('state')