diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-20 02:47:21 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-20 02:47:21 +0900 |
| commit | f5005fccce818e5d2f33612a4cda90aad7469261 (patch) | |
| tree | 02568beda0bd8d6e6dcb45f9625c13736ecb5909 /crates/shirabe/src/downloader | |
| parent | 98af76dbe2815c95d15c20e0f911c4a420b6d848 (diff) | |
| download | php-shirabe-f5005fccce818e5d2f33612a4cda90aad7469261.tar.gz php-shirabe-f5005fccce818e5d2f33612a4cda90aad7469261.tar.zst php-shirabe-f5005fccce818e5d2f33612a4cda90aad7469261.zip | |
feat(hg): implement Hg::new constructor
Take config and process as shared Rc<RefCell<..>> 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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/downloader')
| -rw-r--r-- | crates/shirabe/src/downloader/hg_downloader.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/src/downloader/hg_downloader.rs b/crates/shirabe/src/downloader/hg_downloader.rs index 59a4473..16a78a0 100644 --- a/crates/shirabe/src/downloader/hg_downloader.rs +++ b/crates/shirabe/src/downloader/hg_downloader.rs @@ -85,8 +85,8 @@ impl VcsDownloader for HgDownloader { ) -> Result<Option<PhpMixed>> { let hg_utils = HgUtils::new( self.inner.io.clone(), - &self.inner.config.borrow(), - &self.inner.process, + self.inner.config.clone(), + self.inner.process.clone(), ); let path_clone = path.to_string(); @@ -140,8 +140,8 @@ impl VcsDownloader for HgDownloader { ) -> Result<Option<PhpMixed>> { let hg_utils = HgUtils::new( self.inner.io.clone(), - &self.inner.config.borrow(), - &self.inner.process, + self.inner.config.clone(), + self.inner.process.clone(), ); let ref_ = target |
