Show More
@@ -46,11 +46,13 b' class mercurial_sink(converter_sink):' | |||
|
46 | 46 | self.filemapmode = False |
|
47 | 47 | |
|
48 | 48 | def before(self): |
|
49 | self.ui.debug(_('run hg sink pre-conversion action\n')) | |
|
49 | 50 | self.wlock = self.repo.wlock() |
|
50 | 51 | self.lock = self.repo.lock() |
|
51 | 52 | self.repo.dirstate.clear() |
|
52 | 53 | |
|
53 | 54 | def after(self): |
|
55 | self.ui.debug(_('run hg sink post-conversion action\n')) | |
|
54 | 56 | self.repo.dirstate.invalidate() |
|
55 | 57 | self.lock = None |
|
56 | 58 | self.wlock = None |
@@ -274,3 +276,9 b' class mercurial_source(converter_source)' | |||
|
274 | 276 | 'a') |
|
275 | 277 | self.convertfp.write('%s %s\n' % (destrev, rev)) |
|
276 | 278 | self.convertfp.flush() |
|
279 | ||
|
280 | def before(self): | |
|
281 | self.ui.debug(_('run hg source pre-conversion action\n')) | |
|
282 | ||
|
283 | def after(self): | |
|
284 | self.ui.debug(_('run hg source post-conversion action\n')) |
General Comments 0
You need to be logged in to leave comments.
Login now