Changeset 61f8009


Ignore:
Timestamp:
Oct 25, 2009 3:52:23 PM (10 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
ad396ad
Parents:
9833743
Message:

some more updates to the code_swarm script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codeswarm-extractor.rb

    r9833743 r61f8009  
    1818  '"jrandom-transfer@i2p.net"' => 'jrandom',
    1919  '"transport@welterde.de"' => 'welterde',
    20   '"echelon@mail.i2p"' => 'eche|on'
     20  '"echelon@mail.i2p"' => 'eche|on',
    2121  '"z3d@i2p"' => 'dr|z3d',
    2222  '"cervantes@mail.i2p"' => 'cervantes',
     
    4949  author=certs_[3][1]
    5050  date=nil
     51  branch='""'
    5152  certs_.each_index do |i|
    5253    next unless certs_[i]
    5354    if certs_[i][1]
    5455      date=certs_[i+1][1] if certs_[i][1].strip === '"date"'
     56      branch=certs_[i+1][1] if certs_[i][1].strip === '"branch"'
    5557    end
    5658  end
     
    6163  print date
    6264  print " - "
     65  print branch
     66  print " - "
    6367  puts author
    6468  info.each do |line|
    6569    next unless line
    66     d << [date, line[1].strip[1..-2], (MAPPING[author] or author[1..-2])] if line[0].strip == "patch"
     70    d << [date, (branch.strip[1..-2] + '//' + line[1].strip[1..-2]), (MAPPING[author] or author[1..-2])] if line[0].strip == "patch"
    6771  end
    6872end
Note: See TracChangeset for help on using the changeset viewer.