Mercurial > hg
comparison tests/test-parents @ 4894:be5dc5e3ab2d
hg parents: don't pass an OS-specific path to repo.filectx
The only reason to use the matcher code instead of calling util.canonpath
directly is to be able to use "path:canonical/path/to/file" patterns.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 17 Jul 2007 09:08:29 -0300 |
parents | 0d26e3d0eeeb |
children | 5a4824f6665c |
comparison
equal
deleted
inserted
replaced
4884:931f901ab811 | 4894:be5dc5e3ab2d |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # test parents command | 2 # test parents command |
3 | 3 |
4 hg init a | 4 hg init repo |
5 cd a | 5 cd repo |
6 echo % no working directory | 6 echo % no working directory |
7 hg parents | 7 hg parents |
8 | 8 |
9 echo a > a | 9 echo a > a |
10 echo b > b | 10 echo b > b |
23 echo % hg parents -r 2 | 23 echo % hg parents -r 2 |
24 hg parents -r 2 | 24 hg parents -r 2 |
25 | 25 |
26 echo % hg parents -r 2 a | 26 echo % hg parents -r 2 a |
27 hg parents -r 2 a | 27 hg parents -r 2 a |
28 | |
29 echo % hg parents -r 2 ../a | |
30 hg parents -r 2 ../a | |
31 | |
32 echo '% cd dir; hg parents -r 2 ../a' | |
33 mkdir dir | |
34 cd dir | |
35 hg parents -r 2 ../a | |
36 | |
37 echo '% hg parents -r 2 path:a' | |
38 hg parents -r 2 path:a | |
39 | |
40 echo '% hg parents -r 2 glob:a' | |
41 cd .. | |
42 hg parents -r 2 glob:a | |
43 | |
44 true |