comparison tests/test-status @ 10014:54cd28258ea7

status: add the --change option to display files changed in a revision This option is similar to the one already used for the diff command. Unfortunately, the c and C short option are already used for status, so there is no corresponding short option. However, there is no short option for --rev either, so that's consistent.
author Gilles Moris <gilles.moris@free.fr>
date Mon, 30 Nov 2009 23:51:06 +0100
parents 991f7518c3f3
children
comparison
equal deleted inserted replaced
10013:b2e87fde6806 10014:54cd28258ea7
89 assert "-qAi" "-mardicC" 0 89 assert "-qAi" "-mardicC" 0
90 assert "-qu" "-u" 0 90 assert "-qu" "-u" 0
91 assert "-q" "-u" 1 91 assert "-q" "-u" 1
92 assert "-m" "-a" 1 92 assert "-m" "-a" 1
93 assert "-r" "-d" 1 93 assert "-r" "-d" 1
94 cd ..
94 95
96 hg init repo4
97 cd repo4
98 touch modified removed deleted
99 hg ci -q -A -m 'initial checkin' -d "1000000 0"
100 touch added unknown
101 hg add added
102 hg remove removed
103 rm deleted
104 echo x > modified
105 hg copy modified copied
106 hg ci -m 'test checkin' -d "1000001 0"
107 rm *
108 touch unrelated
109 hg ci -q -A -m 'unrelated checkin' -d "1000002 0"
110 echo "hg status --change 1:"
111 hg status --change 1
112 echo "hg status --change 1 unrelated:"
113 hg status --change 1 unrelated
114 echo "hg status -C --change 1 added modified copied removed deleted:"
115 hg status -C --change 1 added modified copied removed deleted
116 echo "hg status -A --change 1"
117 hg status -A --change 1