On Wed, Nov 18, 2009 at 03:24:10PM +0200, Daniel Shahaf wrote: > In this case, how about losing the "GROUP BY hunk" from the sort? i.e., > > BIG_LIST = [] > for each hunk: > for each candidate in hunk: > compute a score for candidate > BIG_LIST.append(candidate) > # based on line offset, endifs, whatever > > sort BIG_LIST by score > for each candidate in BIG_LIST: > if candidate->hunk.state not in ['applied', 'rejected']: > # try to apply candidate->hunk at candidate->offset
What does to "try to apply" mean? Stefan