Show More
@@ -433,7 +433,7 b' def filterpatch(ui, chunks, chunkselecto' | |||
|
433 | 433 | uiheaders = [uiheader(h) for h in headers] |
|
434 | 434 | # let user choose headers/hunks/lines, and mark their applied flags |
|
435 | 435 | # accordingly |
|
436 |
chunkselector(ui |
|
|
436 | chunkselector(ui, uiheaders) | |
|
437 | 437 | appliedhunklist = [] |
|
438 | 438 | for hdr in uiheaders: |
|
439 | 439 | if (hdr.applied and |
@@ -466,7 +466,7 b' def gethw():' | |||
|
466 | 466 | "hhhh", fcntl.ioctl(_origstdout, termios.TIOCGWINSZ, "\000"*8))[0:2] |
|
467 | 467 | return h, w |
|
468 | 468 | |
|
469 |
def chunkselector( |
|
|
469 | def chunkselector(ui, headerlist): | |
|
470 | 470 | """ |
|
471 | 471 | curses interface to get selection of chunks, and mark the applied flags |
|
472 | 472 | of the chosen chunks. |
@@ -480,7 +480,7 b' def testdecorator(testfn, f):' | |||
|
480 | 480 | return f(testfn, *args, **kwargs) |
|
481 | 481 | return u |
|
482 | 482 | |
|
483 |
def testchunkselector(testfn, |
|
|
483 | def testchunkselector(testfn, ui, headerlist): | |
|
484 | 484 | """ |
|
485 | 485 | test interface to get selection of chunks, and mark the applied flags |
|
486 | 486 | of the chosen chunks. |
General Comments 0
You need to be logged in to leave comments.
Login now