[PATCH 2 of 2 RFC] cmdserver: allow to start server without repository
Yuya Nishihara
yuya at tcha.org
Fri Mar 7 10:47:00 CST 2014
On Fri, 7 Mar 2014 11:27:36 +0200, Idan Kamara wrote:
> On Thu, Mar 6, 2014 at 6:47 PM, Yuya Nishihara <yuya at tcha.org> wrote:
> > BTW, were there some concern not to implement this at the initial design?
>
> Not that I recall, I guess just the thought that most of the benefits
> come from interacting with a repo.
I see. I was a bit afraid that I've changed the command server to wrong
direction.
> > This patch solves my problem, but I guess python-hglib will need another
> > command to set self.repo after server started, for example,
> >
> > hglib.clone()
> > start command server without repo
> > runcommand "clone from to"
> > set server.repo = to (in some way)
> > return hgclient object
>
> Yeah, we can either add a command to the protocol that lets you
> 'chrepo', but I'm not sure if opening a new instance after you've got
> a repo is so bad.
True. It can start new server, so "chrepo" command won't be important.
Regards,
More information about the Mercurial-devel
mailing list