hgbook
view en/examples/daily.revert @ 144:006bbad1f190
Add expected output files.
This makes it possible to spot changes in Mercurial's output and
behaviour over time.
This makes it possible to spot changes in Mercurial's output and
behaviour over time.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue Mar 06 21:44:56 2007 -0800 (2007-03-06) |
parents | 3af28630fe8c |
children |
line source
1 #!/bin/bash
3 hg init a
4 cd a
5 echo 'original content' > file
6 hg ci -Ama
8 #$ name: modify
10 cat file
11 echo unwanted change >> file
12 hg diff file
14 #$ name: unmodify
16 hg status
17 hg revert file
18 cat file
20 #$ name: status
22 hg status
23 cat file.orig
25 #$ name:
27 rm file.orig
29 #$ name: add
31 echo oops > oops
32 hg add oops
33 hg status oops
34 hg revert oops
35 hg status
37 #$ name:
39 rm oops
41 #$ name: remove
43 hg remove file
44 hg status
45 hg revert file
46 hg status
47 ls file
49 #$ name: missing
51 rm file
52 hg status
53 hg revert file
54 ls file
56 #$ name: copy
58 hg copy file new-file
59 hg revert new-file
60 hg status
62 #$ name:
64 rm new-file
66 #$ name: rename
68 hg rename file new-file
69 hg revert new-file
70 hg status
72 #$ name: rename-orig
73 hg revert file
74 hg status