Mercurial > hg
comparison contrib/convert-repo @ 4114:d5011e347476
Merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 26 Feb 2007 12:12:29 -0600 |
parents | 06d65498f73b b53c6f7dbb1f |
children | 1b75e0eff532 |
comparison
equal
deleted
inserted
replaced
4111:972519384853 | 4114:d5011e347476 |
---|---|
83 d = os.getcwd() | 83 d = os.getcwd() |
84 try: | 84 try: |
85 os.chdir(self.path) | 85 os.chdir(self.path) |
86 id = None | 86 id = None |
87 state = 0 | 87 state = 0 |
88 for l in os.popen("cvsps -A"): | 88 for l in os.popen("cvsps -A -u --cvs-direct -q"): |
89 if state == 0: # header | 89 if state == 0: # header |
90 if l.startswith("PatchSet"): | 90 if l.startswith("PatchSet"): |
91 id = l[9:-2] | 91 id = l[9:-2] |
92 elif l.startswith("Date"): | 92 elif l.startswith("Date"): |
93 date = util.parsedate(l[6:-1], ["%Y/%m/%d %H:%M:%S"]) | 93 date = util.parsedate(l[6:-1], ["%Y/%m/%d %H:%M:%S"]) |
100 ancestor = l[17:-1] | 100 ancestor = l[17:-1] |
101 self.parent[id] = self.lastbranch[ancestor] | 101 self.parent[id] = self.lastbranch[ancestor] |
102 elif l.startswith("Author"): | 102 elif l.startswith("Author"): |
103 author = self.recode(l[8:-1]) | 103 author = self.recode(l[8:-1]) |
104 elif l.startswith("Tag: "): | 104 elif l.startswith("Tag: "): |
105 t = l[5:-1] | 105 t = l[5:-1].rstrip() |
106 if t != "(none) ": | 106 if t != "(none)": |
107 self.tags[t] = id | 107 self.tags[t] = id |
108 elif l.startswith("Log:"): | 108 elif l.startswith("Log:"): |
109 state = 1 | 109 state = 1 |
110 log = "" | 110 log = "" |
111 elif state == 1: # log | 111 elif state == 1: # log |