##// END OF EJS Templates
py3: fix test-status.t...
Mark Thomas -
r40314:125fc478 default
parent child Browse files
Show More
@@ -563,6 +563,7 b' test-status-color.t'
563 test-status-inprocess.py
563 test-status-inprocess.py
564 test-status-rev.t
564 test-status-rev.t
565 test-status-terse.t
565 test-status-terse.t
566 test-status.t
566 test-storage.py
567 test-storage.py
567 test-stream-bundle-v2.t
568 test-stream-bundle-v2.t
568 test-strict.t
569 test-strict.t
@@ -272,8 +272,17 b' hg status -A:'
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
General Comments 0
You need to be logged in to leave comments. Login now