@memoized
def get_project_tree(options):
 pants_ignore = (options.pants_ignore or [])
 if options.build_file_rev:
  return ScmProjectTree(get_buildroot(), get_scm(), options.build_file_rev, pants_ignore)
 else:
  return FileSystemProjectTree(get_buildroot(), pants_ignore)

@ memoized def get_project_tree ( options ) : pants_ignore = ( options . pants_ignore or [ ] ) if options . build_file_rev : return ScmProjectTree ( get_buildroot ( ) , get_scm ( ) , options . build_file_rev , pants_ignore ) else : return FileSystemProjectTree ( get_buildroot ( ) , pants_ignore )
creates the project tree for build files for use in a given pants run .