parameters: (dirpath)
docstring: If the specified directory is inside an EdenFS checkout, returns
      the canonical absolute path to the root of that checkout.
  
      Returns None if the specified directory is not in an EdenFS checkout.
docstring_summary: If the specified directory is inside an EdenFS checkout, returns
      the canonical absolute path to the root of that checkout.
docstring_tokens: If the specified directory is inside an EdenFS checkout returns the canonical absolute path to the root of that checkout .
function: def find_eden_root(dirpath):
      """If the specified directory is inside an EdenFS checkout, returns
      the canonical absolute path to the root of that checkout.
  
      Returns None if the specified directory is not in an EdenFS checkout.
      """
      if is_windows():
          repo_type, repo_root = containing_repo_type(dirpath)
          if repo_root is not None:
              if os.path.exists(os.path.join(repo_root, ".eden", "config")):
                  return os.path.realpath(repo_root)
          return None
  
      try:
          return os.readlink(os.path.join(dirpath, ".eden", "root"))
      except OSError:
          return None
function_tokens: def find_eden_root ( dirpath ) : if is_windows ( ) : repo_type , repo_root = containing_repo_type ( dirpath ) if repo_root is not None : if os . path . exists ( os . path . join ( repo_root , ".eden" , "config" ) ) : return os . path . realpath ( repo_root ) return None try : return os . readlink ( os . path . join ( dirpath , ".eden" , "root" ) ) except OSError : return None