comparison hgext/convert/cvs.py @ 4698:30e826bd8ed1

convert: handle new cvsps with Tags: and multiple tags.
author Eric Hopper <hopper@omnifarious.org>
date Sun, 24 Jun 2007 07:22:58 -0700
parents cc9b79216a76
children 20ec5cc02f18 dc2e512cb89a
comparison
equal deleted inserted replaced
4697:5b2d986de0f8 4698:30e826bd8ed1
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":