#NEWLINE# def test_log_with_authors( self ) : #NEWLINE# #INDENT# vcs = self . get_vcs ( ) #NEWLINE# self . _set_author ( 'Another Committer <ac@d.not.zm.exist>' ) #NEWLINE# check_call ( ( 'cd %s && touch BAZ && hg add BAZ && hg commit -m "bazzy"' % ( self . remote_path , ) ) , shell = True ) #NEWLINE# vcs . clone ( ) #NEWLINE# vcs . update ( ) #NEWLINE# revisions = list ( vcs . log ( ) ) #NEWLINE# assert ( len ( revisions ) == 3 ) #NEWLINE# revisions = list ( vcs . log ( author = 'Another Committer' ) ) #NEWLINE# assert ( len ( revisions ) == 1 ) #NEWLINE# self . assertRevision ( revisions [ 0 ] , author = 'Another Committer <ac@d.not.zm.exist>' , message = 'bazzy' ) #NEWLINE# revisions = list ( vcs . log ( author = 'ac@d.not.zm.exist' ) ) #NEWLINE# assert ( len ( revisions ) == 1 ) #NEWLINE# self . assertRevision ( revisions [ 0 ] , author = 'Another Committer <ac@d.not.zm.exist>' , message = 'bazzy' ) #NEWLINE# revisions = list ( vcs . log ( branch = vcs . get_default_revision ( ) , author = 'Foo' ) ) #NEWLINE# assert ( len ( revisions ) == 2 )