Mercurial > public > mercurial-scm > hg-stable
diff tests/test-commandserver.t @ 30276:bc5d0e6fd9f3
histedit: use ui.fin to read commands from stdin
stdin is wrapped by channeledinput in command-server session.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 18 Mar 2016 17:15:06 -0700 |
parents | 7109d5ddeb0c |
children | 318a24b52eeb |
line wrap: on
line diff
--- a/tests/test-commandserver.t Sat Oct 03 14:34:56 2015 +0900 +++ b/tests/test-commandserver.t Fri Mar 18 17:15:06 2016 -0700 @@ -135,6 +135,19 @@ summary: 1 +check that "histedit --commands=-" can read rules from the input channel: + + >>> import cStringIO + >>> from hgclient import readchannel, runcommand, check + >>> @check + ... def serverinput(server): + ... readchannel(server) + ... rules = 'pick eff892de26ec\n' + ... runcommand(server, ['histedit', '0', '--commands=-', + ... '--config', 'extensions.histedit='], + ... input=cStringIO.StringIO(rules)) + *** runcommand histedit 0 --commands=- --config extensions.histedit= + check that --cwd doesn't persist between requests: $ mkdir foo