<s> import os , sys , urllib <EOL> MESSAGE = "<STR_LIT>" <EOL> repo = sys . argv [ <NUM_LIT:1> ] <EOL> revision = sys . argv [ <NUM_LIT:2> ] <EOL> author = os . popen ( <EOL> '<STR_LIT>' % ( repo , revision ) <EOL> ) . read ( ) . strip ( ) <EOL> log = os . popen ( <EOL> '<STR_LIT>' % ( repo , revision ) <EOL> ) . read ( ) . strip ( ) <EOL> message = MESSAGE % { <EOL> '<STR_LIT>' : author , <EOL> '<STR_LIT>' : log , <EOL> '<STR_LIT:r>' : revision , <EOL> } <EOL> urllib . urlopen ( '<STR_LIT>' , urllib . urlencode ( { <EOL> '<STR_LIT:username>' : '<STR_LIT>' , <EOL> '<STR_LIT:password>' : '<STR_LIT>' , <EOL> '<STR_LIT:message>' : message , <EOL> '<STR_LIT>' : '<STR_LIT>' % ( author , revision ) , <EOL> } ) ) . read ( ) <EOL> sys . exit ( <NUM_LIT:0> ) </s>
