Mercurial > core / rust/lib/obj/src/config/repo.rs
changeset 698: |
96958d3eb5b0 |
parent: |
c7165d93a9eb
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
3 //! Repo configuration primitives 4 use serde::{Deserialize, Serialize}; 5 use std::path::PathBuf; 6 #[cfg(feature = "git")] 10 /// Generic repo configuration type 12 /// Wraps Mercurial and Git repos 13 #[derive(Serialize, Deserialize, Debug, Hash, PartialEq)] 14 pub struct RepoConfig { 21 /// Create a new RepoConfig 22 pub fn new() -> Self { 27 impl Default for RepoConfig { 28 fn default() -> Self { 30 vcs: "hg".to_string(), 31 origin: "".to_string(), 32 path: PathBuf::from("."), 39 /// Note that Mercurial subrepos are a 'feature of last resort' 40 /// according to official docs. They are needed in very niche 41 /// scenarios and shouldn't be used most of the time.