#NEWLINE# def get_revision( ) : #NEWLINE# #INDENT# 'Returns revision and vcs information, dynamically obtained.' #NEWLINE# ( vcs , revision , tag ) = ( None , None , None ) #NEWLINE# hgdir = os . path . join ( basedir , '..' , '.hg' ) #NEWLINE# gitdir = os . path . join ( basedir , '..' , '.git' ) #NEWLINE# if os . path . isdir ( gitdir ) : #NEWLINE# #INDENT# vcs = 'git' #NEWLINE# #UNINDENT# vcs_info = ( vcs , ( revision , tag ) ) #NEWLINE# return ( revision , vcs_info )