changeset 40278 | 125fc478719f |
parent 40277 | 1159031ada1e |
child 41492 | 02186c6871ac |
40277:1159031ada1e | 40278:125fc478719f |
---|---|
270 ] |
270 ] |
271 |
271 |
272 $ hg status -A -Tpickle > pickle |
272 $ hg status -A -Tpickle > pickle |
273 >>> from __future__ import print_function |
273 >>> from __future__ import print_function |
274 >>> import pickle |
274 >>> import pickle |
275 >>> print(sorted((x['status'], x['path']) for x in pickle.load(open("pickle")))) |
275 >>> data = sorted((x[b'status'].decode(), x[b'path'].decode()) for x in pickle.load(open("pickle", r"rb"))) |
276 [('!', 'deleted'), ('?', 'pickle'), ('?', 'unknown'), ('A', 'added'), ('A', 'copied'), ('C', '.hgignore'), ('C', 'modified'), ('I', 'ignored'), ('R', 'removed')] |
276 >>> for s, p in data: print("%s %s" % (s, p)) |
277 ! deleted |
|
278 ? pickle |
|
279 ? unknown |
|
280 A added |
|
281 A copied |
|
282 C .hgignore |
|
283 C modified |
|
284 I ignored |
|
285 R removed |
|
277 $ rm pickle |
286 $ rm pickle |
278 |
287 |
279 $ echo "^ignoreddir$" > .hgignore |
288 $ echo "^ignoreddir$" > .hgignore |
280 $ mkdir ignoreddir |
289 $ mkdir ignoreddir |
281 $ touch ignoreddir/file |
290 $ touch ignoreddir/file |