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