Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-parents @ 4584:0d26e3d0eeeb
Make parents with a file but not a revision use working directory revision.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 14 Jun 2007 10:58:49 -0700 |
parents | |
children | be5dc5e3ab2d |
comparison
equal
deleted
inserted
replaced
4582:7de7a80e7422 | 4584:0d26e3d0eeeb |
---|---|
1 #!/bin/sh | |
2 # test parents command | |
3 | |
4 hg init a | |
5 cd a | |
6 echo % no working directory | |
7 hg parents | |
8 | |
9 echo a > a | |
10 echo b > b | |
11 hg ci -Amab -d '0 0' | |
12 echo a >> a | |
13 hg ci -Ama -d '1 0' | |
14 echo b >> b | |
15 hg ci -Amb -d '2 0' | |
16 | |
17 echo % hg parents | |
18 hg parents | |
19 | |
20 echo % hg parents a | |
21 hg parents a | |
22 | |
23 echo % hg parents -r 2 | |
24 hg parents -r 2 | |
25 | |
26 echo % hg parents -r 2 a | |
27 hg parents -r 2 a |