Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/cvs/rlog.py
Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Lines | while 1: | ||||
if line[0] == b"\t": | if line[0] == b"\t": | ||||
[locker, rev] = [x.strip() for x in line.split(b":")] | [locker, rev] = [x.strip() for x in line.split(b":")] | ||||
lockinfo[rev] = locker | lockinfo[rev] = locker | ||||
else: | else: | ||||
# oops. this line isn't lock info. stop parsing tags. | # oops. this line isn't lock info. stop parsing tags. | ||||
state = 0 | state = 0 | ||||
if state == 0: | if state == 0: | ||||
if line[:9] == b"RCS file:": | if line == "\n": | ||||
continue | |||||
elif line[:9] == b"RCS file:": | |||||
filename = line[10:-1] | filename = line[10:-1] | ||||
elif line[:5] == b"head:": | elif line[:5] == b"head:": | ||||
# head = line[6:-1] | # head = line[6:-1] | ||||
pass | pass | ||||
elif line[:7] == b"branch:": | elif line[:7] == b"branch:": | ||||
branch = line[8:-1] | branch = line[8:-1] | ||||
elif line[:6] == b"locks:": | elif line[:6] == b"locks:": | ||||
# start parsing the lock information | # start parsing the lock information | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |