Show More
@@ -554,6 +554,14 b' def testchunkselector(testfn, ui, header' | |||||
554 | of the chosen chunks. |
|
554 | of the chosen chunks. | |
555 | """ |
|
555 | """ | |
556 | chunkselector = curseschunkselector(headerlist, ui, operation) |
|
556 | chunkselector = curseschunkselector(headerlist, ui, operation) | |
|
557 | ||||
|
558 | class dummystdscr(object): | |||
|
559 | def clear(self): | |||
|
560 | pass | |||
|
561 | def refresh(self): | |||
|
562 | pass | |||
|
563 | ||||
|
564 | chunkselector.stdscr = dummystdscr() | |||
557 | if testfn and os.path.exists(testfn): |
|
565 | if testfn and os.path.exists(testfn): | |
558 | testf = open(testfn, 'rb') |
|
566 | testf = open(testfn, 'rb') | |
559 | testcommands = [x.rstrip('\n') for x in testf.readlines()] |
|
567 | testcommands = [x.rstrip('\n') for x in testf.readlines()] | |
@@ -1606,6 +1614,9 b' are you sure you want to review/edit and' | |||||
1606 | except error.Abort as exc: |
|
1614 | except error.Abort as exc: | |
1607 | self.errorstr = str(exc) |
|
1615 | self.errorstr = str(exc) | |
1608 | return None |
|
1616 | return None | |
|
1617 | finally: | |||
|
1618 | self.stdscr.clear() | |||
|
1619 | self.stdscr.refresh() | |||
1609 |
|
1620 | |||
1610 | # remove comment lines |
|
1621 | # remove comment lines | |
1611 | patch = [line + '\n' for line in patch.splitlines() |
|
1622 | patch = [line + '\n' for line in patch.splitlines() |
General Comments 0
You need to be logged in to leave comments.
Login now