Show More
@@ -419,7 +419,7 b' class uihunk(patchnode):' | |||||
419 | def __repr__(self): |
|
419 | def __repr__(self): | |
420 | return '<hunk %r@%d>' % (self.filename(), self.fromline) |
|
420 | return '<hunk %r@%d>' % (self.filename(), self.fromline) | |
421 |
|
421 | |||
422 |
def filterpatch(ui, chunks, chunk |
|
422 | def filterpatch(ui, chunks, chunkselector): | |
423 | """interactively filter patch chunks into applied-only chunks""" |
|
423 | """interactively filter patch chunks into applied-only chunks""" | |
424 |
|
424 | |||
425 | chunks = list(chunks) |
|
425 | chunks = list(chunks) | |
@@ -433,7 +433,7 b' def filterpatch(ui, chunks, chunk_select' | |||||
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 |
chunk |
|
436 | chunkselector(uiheaders, ui) | |
437 | appliedhunklist = [] |
|
437 | appliedhunklist = [] | |
438 | for hdr in uiheaders: |
|
438 | for hdr in uiheaders: | |
439 | if (hdr.applied and |
|
439 | if (hdr.applied and |
General Comments 0
You need to be logged in to leave comments.
Login now