#NEWLINE# def _Load( self ) : #NEWLINE# #INDENT# if ( not self . _loaded ) : #NEWLINE# #INDENT# m = self . manifestProject #NEWLINE# b = m . GetBranch ( m . CurrentBranch ) . merge #NEWLINE# if ( ( b is not None ) and b . startswith ( R_HEADS ) ) : #NEWLINE# #INDENT# b = b [ len ( R_HEADS ) : ] #NEWLINE# #UNINDENT# self . branch = b #NEWLINE# nodes = [ ] #NEWLINE# nodes . append ( self . _ParseManifestXml ( self . manifestFile , self . manifestProject . worktree ) ) #NEWLINE# local = os . path . join ( self . repodir , LOCAL_MANIFEST_NAME ) #NEWLINE# if os . path . exists ( local ) : #NEWLINE# #INDENT# if ( not self . localManifestWarning ) : #NEWLINE# #INDENT# self . localManifestWarning = True #NEWLINE# print ( ( 'warning: %s is deprecated; put local manifests in `%s` instead' % ( LOCAL_MANIFEST_NAME , os . path . join ( self . repodir , LOCAL_MANIFESTS_DIR_NAME ) ) ) , file = sys . stderr ) #NEWLINE# #UNINDENT# nodes . append ( self . _ParseManifestXml ( local , self . repodir ) ) #NEWLINE# #UNINDENT# local_dir = os . path . abspath ( os . path . join ( self . repodir , LOCAL_MANIFESTS_DIR_NAME ) ) #NEWLINE# try : #NEWLINE# #INDENT# for local_file in sorted ( os . listdir ( local_dir ) ) : #NEWLINE# #INDENT# if local_file . endswith ( '.xml' ) : #NEWLINE# #INDENT# local = os . path . join ( local_dir , local_file ) #NEWLINE# nodes . append ( self . _ParseManifestXml ( local , self . repodir ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except OSError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . _ParseManifest ( nodes ) #NEWLINE# #UNINDENT# except ManifestParseError as e : #NEWLINE# #INDENT# self . _Unload ( ) #NEWLINE# raise e #NEWLINE# #UNINDENT# if self . IsMirror : #NEWLINE# #INDENT# self . _AddMetaProjectMirror ( self . repoProject ) #NEWLINE# self . _AddMetaProjectMirror ( self . manifestProject ) #NEWLINE# #UNINDENT# self . _loaded = True