equal
deleted
inserted
replaced
48 elif l.startswith("Ancestor branch"): |
48 elif l.startswith("Ancestor branch"): |
49 ancestor = l[17:-1] |
49 ancestor = l[17:-1] |
50 self.parent[id] = self.lastbranch[ancestor] |
50 self.parent[id] = self.lastbranch[ancestor] |
51 elif l.startswith("Author"): |
51 elif l.startswith("Author"): |
52 author = self.recode(l[8:-1]) |
52 author = self.recode(l[8:-1]) |
53 elif l.startswith("Tag: "): |
53 elif l.startswith("Tag:") or l.startswith("Tags:"): |
54 t = l[5:-1].rstrip() |
54 t = l[l.index(':')+1:] |
55 if t != "(none)": |
55 t = [ut.strip() for ut in t.split(',')] |
56 self.tags[t] = id |
56 if (len(t) > 1) or (t[0] and (t[0] != "(none)")): |
|
57 self.tags.update(dict.fromkeys(t, id)) |
57 elif l.startswith("Log:"): |
58 elif l.startswith("Log:"): |
58 state = 1 |
59 state = 1 |
59 log = "" |
60 log = "" |
60 elif state == 1: # log |
61 elif state == 1: # log |
61 if l == "Members: \n": |
62 if l == "Members: \n": |