##// END OF EJS Templates
Merge with stable
Merge with stable

File last commit:

r9733:f16ec85f default
r10093:a43ae577 merge default
Show More
test-mq-qnew
60 lines | 935 B | text/plain | TextLexer
Brendan Cully
mq: put qnew tests into own file, fold in qnew-twice
r7296 #!/bin/sh
echo "[extensions]" >> $HGRCPATH
echo "mq=" >> $HGRCPATH
hg init mq
cd mq
echo a > a
hg ci -Ama
echo '% qnew should refuse bad patch names'
hg qnew series
hg qnew status
hg qnew guards
hg qnew .hgignore
hg qinit -c
echo '% qnew with uncommitted changes'
echo a > somefile
hg add somefile
hg qnew uncommitted.patch
hg st
hg qseries
hg revert --no-backup somefile
rm somefile
echo '% qnew implies add'
hg qnew test.patch
hg -R .hg/patches st
echo '% qnew missing'
hg qnew missing.patch missing
echo '% qnew -m'
hg qnew -m 'foo bar' mtest.patch
cat .hg/patches/mtest.patch
echo '% qnew twice'
hg qnew first.patch
hg qnew first.patch
touch ../first.patch
hg qimport ../first.patch
Brendan Cully
mq: use cmdutil.matchfiles instead of match for qnew -f....
r7297 echo '% qnew -f from a subdirectory'
hg qpop -a
mkdir d
cd d
echo b > b
hg ci -Am t
echo b >> b
hg st
hg qnew -g -f p
cat ../.hg/patches/p
Martin Geisler
mq: do not call ui.username unless it is necessary...
r9733
echo '% qnew -u with no username configured'
HGUSER= hg qnew -u blue red
cat ../.hg/patches/red