diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-10 00:32:08 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-10 00:32:08 +0900 |
| commit | 8cc1ba8a02c0318b65658f1634de378c780392b9 (patch) | |
| tree | fdd5cb61e488018891a486b25991b87c84220bb8 /crates/mozart-vcs/src/util/hg.rs | |
| parent | 72b2e877c01e67ba7edd37e34ac2eadb7a1c62c4 (diff) | |
| download | php-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.tar.gz php-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.tar.zst php-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.zip | |
refactor(workspace): consolidate crates into mozart-core
Merged mozart-archiver, mozart-autoload, mozart-registry,
mozart-sat-resolver, and mozart-vcs into mozart-core to align
the source layout with Composer's structure.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart-vcs/src/util/hg.rs')
| -rw-r--r-- | crates/mozart-vcs/src/util/hg.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/crates/mozart-vcs/src/util/hg.rs b/crates/mozart-vcs/src/util/hg.rs deleted file mode 100644 index 7f5abcc..0000000 --- a/crates/mozart-vcs/src/util/hg.rs +++ /dev/null @@ -1,30 +0,0 @@ -use std::path::Path; - -use anyhow::Result; - -use crate::process::{ProcessExecutor, ProcessOutput}; - -/// Mercurial utility for command execution. -pub struct HgUtil { - process: ProcessExecutor, -} - -impl HgUtil { - pub fn new(process: ProcessExecutor) -> Self { - Self { process } - } - - /// Execute a Mercurial command. - pub fn execute(&self, args: &[&str], cwd: Option<&Path>) -> Result<ProcessOutput> { - let mut full_args = vec!["hg"]; - full_args.extend_from_slice(args); - self.process.execute_checked(&full_args, cwd) - } - - /// Execute a Mercurial command, not erroring on non-zero exit. - pub fn execute_unchecked(&self, args: &[&str], cwd: Option<&Path>) -> Result<ProcessOutput> { - let mut full_args = vec!["hg"]; - full_args.extend_from_slice(args); - self.process.execute(&full_args, cwd) - } -} |
