Mercurial > hg
comparison tests/test-cat @ 1582:63799b01985c
fix the cat command
- improve localrepo.walk when passed a node
- make the differents walk commands in commands.py accept a node
- change commands.cat to walk over a revision
- add a test
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 06 Dec 2005 14:10:38 +0100 |
parents | |
children | 7544700fd931 |
comparison
equal
deleted
inserted
replaced
1568:1d7d0c07e8f3 | 1582:63799b01985c |
---|---|
1 #!/bin/sh | |
2 # | |
3 mkdir t | |
4 cd t | |
5 hg init | |
6 echo 0 > a | |
7 echo 0 > b | |
8 hg ci -A -m m -d "0 0" | |
9 hg rm a | |
10 hg cat a | |
11 sleep 1 # make sure mtime is changed | |
12 echo 1 > b | |
13 hg ci -m m -d "0 0" | |
14 echo 2 > b | |
15 hg cat -r 0 a | |
16 hg cat -r 0 b | |
17 hg cat -r 1 a | |
18 hg cat -r 1 b |