comparison tests/test-status.t @ 22429:7a7eed5176a4

commands: add hidden -T option for files/manifest/status/tags These commands have generic formatting support but no way to enable it yet. When this feature is more fully developed, this flag will be unhidden.
author Matt Mackall <mpm@selenic.com>
date Mon, 15 Sep 2014 13:15:07 -0500
parents 1f72226064b8
children 968247e8f4ac
comparison
equal deleted inserted replaced
22428:427e80a18ef8 22429:7a7eed5176a4
163 ? unknown 163 ? unknown
164 I ignored 164 I ignored
165 C .hgignore 165 C .hgignore
166 C modified 166 C modified
167 167
168 $ hg status -A -Tjson
169 [
170 {
171 "path": "added",
172 "status": "A"
173 },
174 {
175 "copy": "modified",
176 "path": "copied",
177 "status": "A"
178 },
179 {
180 "path": "removed",
181 "status": "R"
182 },
183 {
184 "path": "deleted",
185 "status": "!"
186 },
187 {
188 "path": "unknown",
189 "status": "?"
190 },
191 {
192 "path": "ignored",
193 "status": "I"
194 },
195 {
196 "path": ".hgignore",
197 "status": "C"
198 },
199 {
200 "path": "modified",
201 "status": "C"
202 }
203 ]
168 204
169 $ echo "^ignoreddir$" > .hgignore 205 $ echo "^ignoreddir$" > .hgignore
170 $ mkdir ignoreddir 206 $ mkdir ignoreddir
171 $ touch ignoreddir/file 207 $ touch ignoreddir/file
172 208