Mercurial > hg
comparison tests/test-mq-qrefresh-interactive.t @ 25797:cc9fb45986d4
record: omit meaningless 'qnew' suggestion at 'hg qnew -i'
Before this patch, 'hg qnew -i' under non-interactive mode suggests
'use qnew instead', and it obviously meaningless.
To omit meaningless 'qnew' suggestion at 'hg qnew -i', this patch adds
internal function '_qrecord()' and specifies 'cmdsuggest' for each of
'qrecord' and 'qnew' separately.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 15 Jul 2015 04:45:58 +0900 |
parents | 9ab18a912c44 |
children | 08f2177b15c7 |
comparison
equal
deleted
inserted
replaced
25796:4eb8d8a44bf1 | 25797:cc9fb45986d4 |
---|---|
121 > me | 121 > me |
122 > EOF | 122 > EOF |
123 | 123 |
124 $ hg add 1.txt 2.txt dir/a.txt | 124 $ hg add 1.txt 2.txt dir/a.txt |
125 $ hg commit -m aaa | 125 $ hg commit -m aaa |
126 $ hg qrecord --config ui.interactive=false patch | |
127 abort: running non-interactively, use qnew instead | |
128 [255] | |
129 $ hg qnew -i --config ui.interactive=false patch | |
130 abort: running non-interactively | |
131 [255] | |
126 $ hg qnew -d '0 0' patch | 132 $ hg qnew -d '0 0' patch |
127 | 133 |
128 Changing files | 134 Changing files |
129 | 135 |
130 $ sed -e 's/2/2 2/;s/4/4 4/' 1.txt > 1.txt.new | 136 $ sed -e 's/2/2 2/;s/4/4 4/' 1.txt > 1.txt.new |