def parse_rev_list(raw_revs):
 revs = []
 for line in raw_revs.splitlines():
  match = REV_LIST_REGEX.match(line)
  if match:
   rev_id = match.group(1)
   summary = match.group(2)
   revs.append((rev_id, summary))
 return revs

def parse_rev_list ( raw_revs ) : revs = [ ] for line in raw_revs . splitlines ( ) : match = REV_LIST_REGEX . match ( line ) if match : rev_id = match . group ( 1 ) summary = match . group ( 2 ) revs . append ( ( rev_id , summary ) ) return revs
parse git log --pretty=online output into pairs .