<s> import subprocess <EOL> from base import Base <EOL> class GitMixin ( Base ) : <EOL> def get_revision_list ( self ) : <EOL> sha_list_string = subprocess . check_output ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> shas = sha_list_string . strip ( ) . split ( '<STR_LIT:\n>' ) <EOL> for sha in reversed ( shas ) : <EOL> yield sha <EOL> def checkout ( self , sha ) : <EOL> subprocess . call ( [ '<STR_LIT>' , '<STR_LIT>' , sha ] ) </s>
