From f5005fccce818e5d2f33612a4cda90aad7469261 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 02:47:21 +0900 Subject: feat(hg): implement Hg::new constructor Take config and process as shared Rc> handles matching the struct fields and Util\Git's constructor, assigning them directly. PHP stores the same Config object reference, so sharing the Rc is faithful; update the three call sites to pass cloned handles. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/repository/vcs/hg_driver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/repository/vcs') diff --git a/crates/shirabe/src/repository/vcs/hg_driver.rs b/crates/shirabe/src/repository/vcs/hg_driver.rs index 4a6188e..737443c 100644 --- a/crates/shirabe/src/repository/vcs/hg_driver.rs +++ b/crates/shirabe/src/repository/vcs/hg_driver.rs @@ -85,8 +85,8 @@ impl HgDriver { let hg_utils = HgUtils::new( self.inner.io.clone(), - &self.inner.config.borrow(), - &self.inner.process, + self.inner.config.clone(), + self.inner.process.clone(), ); if is_dir(&self.repo_dir) -- cgit v1.3.1