#NEWLINE# def _get_bottom_and_top_outgoing_revs_for_remote( self , rev = None ) : #NEWLINE# #INDENT# 'Return the bottom and top outgoing revisions.\n\n        Returns the bottom and top outgoing revisions for the changesets\n        between the current branch and the remote branch.\n        ' #NEWLINE# remote = self . _get_remote_branch ( ) #NEWLINE# current_branch = self . _get_current_branch ( ) #NEWLINE# outgoing = [ o for o in self . _get_outgoing_changesets ( remote , rev = rev ) if ( current_branch == o [ 2 ] ) ] #NEWLINE# if outgoing : #NEWLINE# #INDENT# ( top_rev , bottom_rev ) = self . _get_top_and_bottom_outgoing_revs ( outgoing ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# top_rev = None #NEWLINE# bottom_rev = None #NEWLINE# #UNINDENT# return ( bottom_rev , top_rev )