Show More
@@ -68,6 +68,19 b' from mercurial import cmdutil, commands,' | |||
|
68 | 68 | from mercurial.i18n import _ |
|
69 | 69 | from mercurial.node import bin |
|
70 | 70 | |
|
71 | class exportee: | |
|
72 | def __init__(self, container): | |
|
73 | self.lines = [] | |
|
74 | self.container = container | |
|
75 | self.name = 'email' | |
|
76 | ||
|
77 | def write(self, data): | |
|
78 | self.lines.append(data) | |
|
79 | ||
|
80 | def close(self): | |
|
81 | self.container.append(''.join(self.lines).split('\n')) | |
|
82 | self.lines = [] | |
|
83 | ||
|
71 | 84 | def patchbomb(ui, repo, *revs, **opts): |
|
72 | 85 | '''send changesets by email |
|
73 | 86 | |
@@ -287,20 +300,6 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
287 | 300 | |
|
288 | 301 | def getexportmsgs(): |
|
289 | 302 | patches = [] |
|
290 | ||
|
291 | class exportee: | |
|
292 | def __init__(self, container): | |
|
293 | self.lines = [] | |
|
294 | self.container = container | |
|
295 | self.name = 'email' | |
|
296 | ||
|
297 | def write(self, data): | |
|
298 | self.lines.append(data) | |
|
299 | ||
|
300 | def close(self): | |
|
301 | self.container.append(''.join(self.lines).split('\n')) | |
|
302 | self.lines = [] | |
|
303 | ||
|
304 | 303 | commands.export(ui, repo, *revs, **{'output': exportee(patches), |
|
305 | 304 | 'switch_parent': False, |
|
306 | 305 | 'text': None, |
General Comments 0
You need to be logged in to leave comments.
Login now