remove (changesets), it's enough numbers like this

This commit is contained in:
Benoit Jacob 2009-09-24 15:14:45 -04:00
parent ddfd23a13e
commit e58e9c842e

View File

@ -168,7 +168,7 @@ int main()
{ {
// parse the hg churn output files // parse the hg churn output files
map<string,int> contributors_map_for_changedlines = contributors_map_from_churn_output("churn-changedlines.out"); map<string,int> contributors_map_for_changedlines = contributors_map_from_churn_output("churn-changedlines.out");
map<string,int> contributors_map_for_changesets = contributors_map_from_churn_output("churn-changesets.out"); //map<string,int> contributors_map_for_changesets = contributors_map_from_churn_output("churn-changesets.out");
// merge into the contributors list // merge into the contributors list
list<contributor> contributors_list; list<contributor> contributors_list;
@ -178,7 +178,7 @@ int main()
contributor c; contributor c;
c.name = it->first; c.name = it->first;
c.changedlines = it->second; c.changedlines = it->second;
c.changesets = contributors_map_for_changesets.find(it->first)->second; c.changesets = 0; //contributors_map_for_changesets.find(it->first)->second;
contributors_list.push_back(c); contributors_list.push_back(c);
} }
@ -188,7 +188,7 @@ int main()
cout << "{| cellpadding=\"5\"\n"; cout << "{| cellpadding=\"5\"\n";
cout << "!\n"; cout << "!\n";
cout << "! Lines changed\n(changesets)\n"; cout << "! Lines changed\n";
cout << "!\n"; cout << "!\n";
list<contributor>::iterator itc; list<contributor>::iterator itc;
@ -203,7 +203,7 @@ int main()
else else
cout << "| " << itc->name << "\n"; cout << "| " << itc->name << "\n";
if(itc->changedlines) if(itc->changedlines)
cout << "| " << itc->changedlines << " (" << itc->changesets << ")\n"; cout << "| " << itc->changedlines << "\n";
else else
cout << "| (no information)\n"; cout << "| (no information)\n";
cout << "| " << itc->misc << "\n"; cout << "| " << itc->misc << "\n";