Mercurial > hg
comparison tests/test-status.t @ 29485:6a98f9408a50
py3: make files use absolute_import and print_function
This patch includes addition of absolute_import and print_function to the
files where they are missing. The modern importing conventions are also followed.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 03 Jul 2016 22:28:24 +0530 |
parents | 2d3837a4bded |
children | 568d80b24b3a |
comparison
equal
deleted
inserted
replaced
29484:53b7fc7cc2bb | 29485:6a98f9408a50 |
---|---|
201 "status": "C" | 201 "status": "C" |
202 } | 202 } |
203 ] | 203 ] |
204 | 204 |
205 $ hg status -A -Tpickle > pickle | 205 $ hg status -A -Tpickle > pickle |
206 >>> from __future__ import print_function | |
206 >>> import pickle | 207 >>> import pickle |
207 >>> print sorted((x['status'], x['path']) for x in pickle.load(open("pickle"))) | 208 >>> print(sorted((x['status'], x['path']) for x in pickle.load(open("pickle")))) |
208 [('!', 'deleted'), ('?', 'pickle'), ('?', 'unknown'), ('A', 'added'), ('A', 'copied'), ('C', '.hgignore'), ('C', 'modified'), ('I', 'ignored'), ('R', 'removed')] | 209 [('!', 'deleted'), ('?', 'pickle'), ('?', 'unknown'), ('A', 'added'), ('A', 'copied'), ('C', '.hgignore'), ('C', 'modified'), ('I', 'ignored'), ('R', 'removed')] |
209 $ rm pickle | 210 $ rm pickle |
210 | 211 |
211 $ echo "^ignoreddir$" > .hgignore | 212 $ echo "^ignoreddir$" > .hgignore |
212 $ mkdir ignoreddir | 213 $ mkdir ignoreddir |