def get_repo_info_tuple_contents(repo_info_tuple):
 if (len(repo_info_tuple) == 6):
  (description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, tool_dependencies) = repo_info_tuple
  repository_dependencies = None
 elif (len(repo_info_tuple) == 7):
  (description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, tool_dependencies) = repo_info_tuple
 return (description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, tool_dependencies)

def get_repo_info_tuple_contents ( repo_info_tuple ) : if ( len ( repo_info_tuple ) == 6 ) : ( description , repository_clone_url , changeset_revision , ctx_rev , repository_owner , tool_dependencies ) = repo_info_tuple repository_dependencies = None elif ( len ( repo_info_tuple ) == 7 ) : ( description , repository_clone_url , changeset_revision , ctx_rev , repository_owner , repository_dependencies , tool_dependencies ) = repo_info_tuple return ( description , repository_clone_url , changeset_revision , ctx_rev , repository_owner , repository_dependencies , tool_dependencies )
take care in handling the repo_info_tuple as it evolves over time as new tool shed features are introduced .