Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/tests/test-mq.out Sun Feb 03 21:03:46 2008 -0200 +++ b/tests/test-mq.out Sun Feb 03 21:03:46 2008 -0200 @@ -59,6 +59,11 @@ % qinit -c A .hgignore A series +% qnew should refuse bad patch names +abort: "series" cannot be used as the name of a patch +abort: "status" cannot be used as the name of a patch +abort: "guards" cannot be used as the name of a patch +abort: ".hgignore" cannot be used as the name of a patch % qnew implies add A .hgignore A series