Show More
@@ -235,6 +235,7 b' class converter(object):' | |||||
235 |
|
235 | |||
236 | def convert(self): |
|
236 | def convert(self): | |
237 | try: |
|
237 | try: | |
|
238 | self.source.before() | |||
238 | self.dest.before() |
|
239 | self.dest.before() | |
239 | self.source.setrevmap(self.map) |
|
240 | self.source.setrevmap(self.map) | |
240 | self.ui.status("scanning source...\n") |
|
241 | self.ui.status("scanning source...\n") | |
@@ -273,7 +274,10 b' class converter(object):' | |||||
273 | self.cleanup() |
|
274 | self.cleanup() | |
274 |
|
275 | |||
275 | def cleanup(self): |
|
276 | def cleanup(self): | |
|
277 | try: | |||
276 | self.dest.after() |
|
278 | self.dest.after() | |
|
279 | finally: | |||
|
280 | self.source.after() | |||
277 | if self.revmapfilefd: |
|
281 | if self.revmapfilefd: | |
278 | self.revmapfilefd.close() |
|
282 | self.revmapfilefd.close() | |
279 |
|
283 |
@@ -38,6 +38,12 b' class converter_source(object):' | |||||
38 |
|
38 | |||
39 | self.encoding = 'utf-8' |
|
39 | self.encoding = 'utf-8' | |
40 |
|
40 | |||
|
41 | def before(self): | |||
|
42 | pass | |||
|
43 | ||||
|
44 | def after(self): | |||
|
45 | pass | |||
|
46 | ||||
41 | def setrevmap(self, revmap): |
|
47 | def setrevmap(self, revmap): | |
42 | """set the map of already-converted revisions""" |
|
48 | """set the map of already-converted revisions""" | |
43 | pass |
|
49 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now