comparison tests/test-revset @ 11409:7a6ac83a15b0

revset: add some tests
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Tue, 08 Jun 2010 17:56:57 +0200
parents
children 3cc2e34d7a7d
comparison
equal deleted inserted replaced
11408:534c69494918 11409:7a6ac83a15b0
1 #!/bin/sh
2
3 try() {
4 echo '% hg debugrevspec' $@
5 hg debugrevspec $@
6 }
7
8 hg init repo
9 cd repo
10 hg branch a
11 hg ci -m "plain name"
12 hg branch b
13 hg ci -m "another plain name"
14 hg branch a-b-c-
15 hg ci -m "with dashes"
16 hg branch -- -a-b-c-
17 hg ci -m "with leading dash"
18 hg branch +a+b+c+
19 hg ci -m "with plusses"
20 hg branch /a/b/c/
21 hg ci -m "with slashes"
22 hg branch _a_b_c_
23 hg ci -m "with underscores"
24 hg branch .a.b.c.
25 hg ci -m "with dots"
26
27 # names that should work without quoting
28 try a
29 try b-a
30 try _a_b_c_
31 try _a_b_c_-a
32 try .a.b.c.
33 try .a.b.c.-a
34
35 # quoting needed
36 try '"-a-b-c-"'
37 try '"-a-b-c-"-a'
38