comparison tests/test-mq @ 5534:61c230f81068

mq: avoid qnew committing everything on invalid paths (issue 803) If paths are supplied but resolve to nothing, localrepo.commit() is called with an empty set and commits the whole dirstate. Avoid this by passing the match function to commit.
author Patrick Mezard <pmezard@gmail.com>
date Tue, 20 Nov 2007 14:31:58 +0100
parents 0b3f910dfd17
children b4858eb4b58f
comparison
equal deleted inserted replaced
5527:0b3f910dfd17 5534:61c230f81068
81 echo ' series:' 81 echo ' series:'
82 cat .hg/patches/series 82 cat .hg/patches/series
83 cd .. 83 cd ..
84 84
85 cd a 85 cd a
86
87 echo a > somefile
88 hg add somefile
89
90 echo % qnew with uncommitted changes
91
92 hg qnew uncommitted.patch
93 hg st
94 hg qseries
95
96 echo '% qnew with uncommitted changes and missing file (issue 803)'
97
98 hg qnew issue803.patch someotherfile 2>&1 | \
99 sed -e 's/someotherfile:.*/someotherfile: No such file or directory/'
100 hg st
101 hg qseries
102 hg qpop -f
103 hg qdel issue803.patch
104
105 hg revert --no-backup somefile
106 rm somefile
86 107
87 echo % qnew -m 108 echo % qnew -m
88 109
89 hg qnew -m 'foo bar' test.patch 110 hg qnew -m 'foo bar' test.patch
90 cat .hg/patches/test.patch 111 cat .hg/patches/test.patch