151 abort: unknown revision '--config=alias.log=!echo pwned'! |
151 abort: unknown revision '--config=alias.log=!echo pwned'! |
152 [255] |
152 [255] |
153 |
153 |
154 check that "histedit --commands=-" can read rules from the input channel: |
154 check that "histedit --commands=-" can read rules from the input channel: |
155 |
155 |
156 >>> import cStringIO |
156 >>> from hgclient import check, readchannel, runcommand, stringio |
157 >>> from hgclient import check, readchannel, runcommand |
|
158 >>> @check |
157 >>> @check |
159 ... def serverinput(server): |
158 ... def serverinput(server): |
160 ... readchannel(server) |
159 ... readchannel(server) |
161 ... rules = b'pick eff892de26ec\n' |
160 ... rules = b'pick eff892de26ec\n' |
162 ... runcommand(server, [b'histedit', b'0', b'--commands=-', |
161 ... runcommand(server, [b'histedit', b'0', b'--commands=-', |
163 ... b'--config', b'extensions.histedit='], |
162 ... b'--config', b'extensions.histedit='], |
164 ... input=cStringIO.StringIO(rules)) |
163 ... input=stringio(rules)) |
165 *** runcommand histedit 0 --commands=- --config extensions.histedit= |
164 *** runcommand histedit 0 --commands=- --config extensions.histedit= |
166 |
165 |
167 check that --cwd doesn't persist between requests: |
166 check that --cwd doesn't persist between requests: |
168 |
167 |
169 $ mkdir foo |
168 $ mkdir foo |