83 process.readAllStandardOutput(), ioEncoding, |
83 process.readAllStandardOutput(), ioEncoding, |
84 'replace') |
84 'replace') |
85 |
85 |
86 self.bookmarksList = [] |
86 self.bookmarksList = [] |
87 for line in output.splitlines(): |
87 for line in output.splitlines(): |
88 l = line.strip().split() |
88 li = line.strip().split() |
89 if l[-1][0] in "1234567890": |
89 if li[-1][0] in "1234567890": |
90 # last element is a rev:changeset |
90 # last element is a rev:changeset |
91 del l[-1] |
91 del li[-1] |
92 if l[0] == "*": |
92 if li[0] == "*": |
93 del l[0] |
93 del li[0] |
94 name = " ".join(l) |
94 name = " ".join(li) |
95 self.bookmarksList.append(name) |
95 self.bookmarksList.append(name) |
96 |
96 |
97 return self.bookmarksList[:] |
97 return self.bookmarksList[:] |
98 |
98 |
99 def hgBookmarkDefine(self, name): |
99 def hgBookmarkDefine(self, name): |
280 process.readAllStandardOutput(), ioEncoding, |
280 process.readAllStandardOutput(), ioEncoding, |
281 'replace') |
281 'replace') |
282 |
282 |
283 for line in output.splitlines(): |
283 for line in output.splitlines(): |
284 if line.startswith(" "): |
284 if line.startswith(" "): |
285 l = line.strip().split() |
285 li = line.strip().split() |
286 del l[-1] |
286 del li[-1] |
287 name = " ".join(l) |
287 name = " ".join(li) |
288 bookmarksList.append(name) |
288 bookmarksList.append(name) |
289 |
289 |
290 return bookmarksList |
290 return bookmarksList |
291 |
291 |
292 def hgBookmarkPull(self, name): |
292 def hgBookmarkPull(self, name): |