//! Hosted projects: the vcs protocol client. (Filled in with the server.)
use anyhow::Result;
use vcs_core::Id;
use vcs_core::version::Version;
use crate::app::App;
use crate::db::{Change, Db, Project};
use crate::host::{Host, LandRequest, Landed};
use crate::objects::Store;
use crate::out::Fail;
pub struct Remote {
pub api: String,
}
impl Remote {
pub fn for_project(project: &Project) -> Remote {
Remote { api: project.api.clone().unwrap_or_default() }
}
pub fn fetch_change(&self, _db: &Db, _store: &Store, _project: &Project, _prefix: &str) -> Result