comparison tests/test-mq.out @ 5981:ca2af0c81c9a

mq: don't allow patches with some reserved names The current list of reserved names includes only mq control files. Also, reserve names starting with ".hg" (to avoid troubles with e.g. .hgignore and .hgtags), and with ".mq" (to allow future extensions). This should fix issue841.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sun, 03 Feb 2008 21:03:46 -0200
parents b4858eb4b58f
children 30d2fecaab76 83633602e2c5
comparison
equal deleted inserted replaced
5980:dcda0c90125c 5981:ca2af0c81c9a
57 % qinit 57 % qinit
58 % -R qinit 58 % -R qinit
59 % qinit -c 59 % qinit -c
60 A .hgignore 60 A .hgignore
61 A series 61 A series
62 % qnew should refuse bad patch names
63 abort: "series" cannot be used as the name of a patch
64 abort: "status" cannot be used as the name of a patch
65 abort: "guards" cannot be used as the name of a patch
66 abort: ".hgignore" cannot be used as the name of a patch
62 % qnew implies add 67 % qnew implies add
63 A .hgignore 68 A .hgignore
64 A series 69 A series
65 A test.patch 70 A test.patch
66 % qinit; qinit -c 71 % qinit; qinit -c