def __init__(self, name):
self.name = name
self.revlist = []
+ self.symbols = []
with popen_or_die("cd .src >/dev/null; rlog %s; cd ..>/dev/null" % name) as fp:
self.revlist = []
self.lockrevs = []
if debug >= DEBUG_PARSE:
sys.stdout.write("\t-> locks\n")
state = "locks"
+ elif line.startswith("symbols:"):
+ if debug >= DEBUG_PARSE:
+ sys.stdout.write("\t-> symbols\n")
+ state = "symbols"
elif line.startswith("----------------------------"):
if debug >= DEBUG_PARSE:
sys.stdout.write("\t-> logheader\n")
else:
fields = line.strip().split()
self.lockrevs.append(fields[1])
+ elif state == "symbolic names":
+ if not line[0].isspace():
+ if debug >= DEBUG_PARSE:
+ sys.stdout.write("\t-> init\n")
+ state = "init"
+ else:
+ fields = line.strip().split()
+ self.symbols.append(fields[1])
elif state == "logheader":
if line.startswith("revision"):
fields = line.split()