diff -r 74da9d999cd7 -r 045ea159418d rust/chg/src/clientext.rs --- a/rust/chg/src/clientext.rs Mon Sep 24 18:57:54 2018 +0900 +++ b/rust/chg/src/clientext.rs Mon Sep 24 19:06:30 2018 +0900 @@ -6,8 +6,11 @@ //! cHg extensions to command server client. use std::ffi::OsStr; +use std::os::unix::ffi::OsStrExt; use std::os::unix::io::AsRawFd; +use std::path::Path; use tokio_hglib::{Client, Connection}; +use tokio_hglib::protocol::OneShotRequest; use super::attachio::AttachIo; use super::message; @@ -23,6 +26,10 @@ O: AsRawFd, E: AsRawFd; + /// Changes the working directory of the server. + fn set_current_dir
(self, dir: P) -> OneShotRequest (self, dir: P) -> OneShotRequest