Show More
@@ -1,17 +1,20 | |||||
1 | # showstack.py - extension to dump a Python stack trace on signal |
|
1 | # showstack.py - extension to dump a Python stack trace on signal | |
2 | # |
|
2 | # | |
3 | # binds to both SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs) |
|
3 | # binds to both SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs) | |
4 |
|
4 | |||
5 | import sys, signal, traceback |
|
5 | from __future__ import absolute_import | |
|
6 | import signal | |||
|
7 | import sys | |||
|
8 | import traceback | |||
6 |
|
9 | |||
7 | def sigshow(*args): |
|
10 | def sigshow(*args): | |
8 | sys.stderr.write("\n") |
|
11 | sys.stderr.write("\n") | |
9 | traceback.print_stack(args[1], limit=10, file=sys.stderr) |
|
12 | traceback.print_stack(args[1], limit=10, file=sys.stderr) | |
10 | sys.stderr.write("----\n") |
|
13 | sys.stderr.write("----\n") | |
11 |
|
14 | |||
12 | def extsetup(ui): |
|
15 | def extsetup(ui): | |
13 | signal.signal(signal.SIGQUIT, sigshow) |
|
16 | signal.signal(signal.SIGQUIT, sigshow) | |
14 | try: |
|
17 | try: | |
15 | signal.signal(signal.SIGINFO, sigshow) |
|
18 | signal.signal(signal.SIGINFO, sigshow) | |
16 | except AttributeError: |
|
19 | except AttributeError: | |
17 | pass |
|
20 | pass |
@@ -1,126 +1,125 | |||||
1 | #require test-repo |
|
1 | #require test-repo | |
2 |
|
2 | |||
3 | $ cd "$TESTDIR"/.. |
|
3 | $ cd "$TESTDIR"/.. | |
4 |
|
4 | |||
5 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py |
|
5 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py | |
6 | contrib/import-checker.py not using absolute_import |
|
6 | contrib/import-checker.py not using absolute_import | |
7 | contrib/import-checker.py requires print_function |
|
7 | contrib/import-checker.py requires print_function | |
8 | contrib/perf.py not using absolute_import |
|
8 | contrib/perf.py not using absolute_import | |
9 | contrib/python-hook-examples.py not using absolute_import |
|
9 | contrib/python-hook-examples.py not using absolute_import | |
10 | contrib/revsetbenchmarks.py not using absolute_import |
|
10 | contrib/revsetbenchmarks.py not using absolute_import | |
11 | contrib/revsetbenchmarks.py requires print_function |
|
11 | contrib/revsetbenchmarks.py requires print_function | |
12 | contrib/showstack.py not using absolute_import |
|
|||
13 | contrib/synthrepo.py not using absolute_import |
|
12 | contrib/synthrepo.py not using absolute_import | |
14 | doc/check-seclevel.py not using absolute_import |
|
13 | doc/check-seclevel.py not using absolute_import | |
15 | doc/gendoc.py not using absolute_import |
|
14 | doc/gendoc.py not using absolute_import | |
16 | doc/hgmanpage.py not using absolute_import |
|
15 | doc/hgmanpage.py not using absolute_import | |
17 | hgext/color.py not using absolute_import |
|
16 | hgext/color.py not using absolute_import | |
18 | hgext/eol.py not using absolute_import |
|
17 | hgext/eol.py not using absolute_import | |
19 | hgext/extdiff.py not using absolute_import |
|
18 | hgext/extdiff.py not using absolute_import | |
20 | hgext/factotum.py not using absolute_import |
|
19 | hgext/factotum.py not using absolute_import | |
21 | hgext/fetch.py not using absolute_import |
|
20 | hgext/fetch.py not using absolute_import | |
22 | hgext/fsmonitor/pywatchman/__init__.py not using absolute_import |
|
21 | hgext/fsmonitor/pywatchman/__init__.py not using absolute_import | |
23 | hgext/fsmonitor/pywatchman/__init__.py requires print_function |
|
22 | hgext/fsmonitor/pywatchman/__init__.py requires print_function | |
24 | hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import |
|
23 | hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import | |
25 | hgext/fsmonitor/pywatchman/pybser.py not using absolute_import |
|
24 | hgext/fsmonitor/pywatchman/pybser.py not using absolute_import | |
26 | hgext/gpg.py not using absolute_import |
|
25 | hgext/gpg.py not using absolute_import | |
27 | hgext/graphlog.py not using absolute_import |
|
26 | hgext/graphlog.py not using absolute_import | |
28 | hgext/hgcia.py not using absolute_import |
|
27 | hgext/hgcia.py not using absolute_import | |
29 | hgext/hgk.py not using absolute_import |
|
28 | hgext/hgk.py not using absolute_import | |
30 | hgext/highlight/__init__.py not using absolute_import |
|
29 | hgext/highlight/__init__.py not using absolute_import | |
31 | hgext/highlight/highlight.py not using absolute_import |
|
30 | hgext/highlight/highlight.py not using absolute_import | |
32 | hgext/histedit.py not using absolute_import |
|
31 | hgext/histedit.py not using absolute_import | |
33 | hgext/largefiles/__init__.py not using absolute_import |
|
32 | hgext/largefiles/__init__.py not using absolute_import | |
34 | hgext/largefiles/basestore.py not using absolute_import |
|
33 | hgext/largefiles/basestore.py not using absolute_import | |
35 | hgext/largefiles/lfcommands.py not using absolute_import |
|
34 | hgext/largefiles/lfcommands.py not using absolute_import | |
36 | hgext/largefiles/lfutil.py not using absolute_import |
|
35 | hgext/largefiles/lfutil.py not using absolute_import | |
37 | hgext/largefiles/localstore.py not using absolute_import |
|
36 | hgext/largefiles/localstore.py not using absolute_import | |
38 | hgext/largefiles/overrides.py not using absolute_import |
|
37 | hgext/largefiles/overrides.py not using absolute_import | |
39 | hgext/largefiles/proto.py not using absolute_import |
|
38 | hgext/largefiles/proto.py not using absolute_import | |
40 | hgext/largefiles/remotestore.py not using absolute_import |
|
39 | hgext/largefiles/remotestore.py not using absolute_import | |
41 | hgext/largefiles/reposetup.py not using absolute_import |
|
40 | hgext/largefiles/reposetup.py not using absolute_import | |
42 | hgext/largefiles/uisetup.py not using absolute_import |
|
41 | hgext/largefiles/uisetup.py not using absolute_import | |
43 | hgext/largefiles/wirestore.py not using absolute_import |
|
42 | hgext/largefiles/wirestore.py not using absolute_import | |
44 | hgext/mq.py not using absolute_import |
|
43 | hgext/mq.py not using absolute_import | |
45 | hgext/rebase.py not using absolute_import |
|
44 | hgext/rebase.py not using absolute_import | |
46 | hgext/share.py not using absolute_import |
|
45 | hgext/share.py not using absolute_import | |
47 | hgext/win32text.py not using absolute_import |
|
46 | hgext/win32text.py not using absolute_import | |
48 | i18n/check-translation.py not using absolute_import |
|
47 | i18n/check-translation.py not using absolute_import | |
49 | i18n/polib.py not using absolute_import |
|
48 | i18n/polib.py not using absolute_import | |
50 | setup.py not using absolute_import |
|
49 | setup.py not using absolute_import | |
51 | tests/filterpyflakes.py requires print_function |
|
50 | tests/filterpyflakes.py requires print_function | |
52 | tests/generate-working-copy-states.py requires print_function |
|
51 | tests/generate-working-copy-states.py requires print_function | |
53 | tests/get-with-headers.py requires print_function |
|
52 | tests/get-with-headers.py requires print_function | |
54 | tests/heredoctest.py requires print_function |
|
53 | tests/heredoctest.py requires print_function | |
55 | tests/hypothesishelpers.py not using absolute_import |
|
54 | tests/hypothesishelpers.py not using absolute_import | |
56 | tests/hypothesishelpers.py requires print_function |
|
55 | tests/hypothesishelpers.py requires print_function | |
57 | tests/killdaemons.py not using absolute_import |
|
56 | tests/killdaemons.py not using absolute_import | |
58 | tests/md5sum.py not using absolute_import |
|
57 | tests/md5sum.py not using absolute_import | |
59 | tests/mockblackbox.py not using absolute_import |
|
58 | tests/mockblackbox.py not using absolute_import | |
60 | tests/printenv.py not using absolute_import |
|
59 | tests/printenv.py not using absolute_import | |
61 | tests/readlink.py not using absolute_import |
|
60 | tests/readlink.py not using absolute_import | |
62 | tests/readlink.py requires print_function |
|
61 | tests/readlink.py requires print_function | |
63 | tests/revlog-formatv0.py not using absolute_import |
|
62 | tests/revlog-formatv0.py not using absolute_import | |
64 | tests/run-tests.py not using absolute_import |
|
63 | tests/run-tests.py not using absolute_import | |
65 | tests/seq.py not using absolute_import |
|
64 | tests/seq.py not using absolute_import | |
66 | tests/seq.py requires print_function |
|
65 | tests/seq.py requires print_function | |
67 | tests/silenttestrunner.py not using absolute_import |
|
66 | tests/silenttestrunner.py not using absolute_import | |
68 | tests/silenttestrunner.py requires print_function |
|
67 | tests/silenttestrunner.py requires print_function | |
69 | tests/sitecustomize.py not using absolute_import |
|
68 | tests/sitecustomize.py not using absolute_import | |
70 | tests/svn-safe-append.py not using absolute_import |
|
69 | tests/svn-safe-append.py not using absolute_import | |
71 | tests/svnxml.py not using absolute_import |
|
70 | tests/svnxml.py not using absolute_import | |
72 | tests/test-ancestor.py requires print_function |
|
71 | tests/test-ancestor.py requires print_function | |
73 | tests/test-atomictempfile.py not using absolute_import |
|
72 | tests/test-atomictempfile.py not using absolute_import | |
74 | tests/test-batching.py not using absolute_import |
|
73 | tests/test-batching.py not using absolute_import | |
75 | tests/test-batching.py requires print_function |
|
74 | tests/test-batching.py requires print_function | |
76 | tests/test-bdiff.py not using absolute_import |
|
75 | tests/test-bdiff.py not using absolute_import | |
77 | tests/test-bdiff.py requires print_function |
|
76 | tests/test-bdiff.py requires print_function | |
78 | tests/test-context.py not using absolute_import |
|
77 | tests/test-context.py not using absolute_import | |
79 | tests/test-context.py requires print_function |
|
78 | tests/test-context.py requires print_function | |
80 | tests/test-demandimport.py not using absolute_import |
|
79 | tests/test-demandimport.py not using absolute_import | |
81 | tests/test-demandimport.py requires print_function |
|
80 | tests/test-demandimport.py requires print_function | |
82 | tests/test-doctest.py not using absolute_import |
|
81 | tests/test-doctest.py not using absolute_import | |
83 | tests/test-duplicateoptions.py not using absolute_import |
|
82 | tests/test-duplicateoptions.py not using absolute_import | |
84 | tests/test-duplicateoptions.py requires print_function |
|
83 | tests/test-duplicateoptions.py requires print_function | |
85 | tests/test-filecache.py not using absolute_import |
|
84 | tests/test-filecache.py not using absolute_import | |
86 | tests/test-filecache.py requires print_function |
|
85 | tests/test-filecache.py requires print_function | |
87 | tests/test-filelog.py not using absolute_import |
|
86 | tests/test-filelog.py not using absolute_import | |
88 | tests/test-filelog.py requires print_function |
|
87 | tests/test-filelog.py requires print_function | |
89 | tests/test-hg-parseurl.py not using absolute_import |
|
88 | tests/test-hg-parseurl.py not using absolute_import | |
90 | tests/test-hg-parseurl.py requires print_function |
|
89 | tests/test-hg-parseurl.py requires print_function | |
91 | tests/test-hgweb-auth.py not using absolute_import |
|
90 | tests/test-hgweb-auth.py not using absolute_import | |
92 | tests/test-hgweb-auth.py requires print_function |
|
91 | tests/test-hgweb-auth.py requires print_function | |
93 | tests/test-hgwebdir-paths.py not using absolute_import |
|
92 | tests/test-hgwebdir-paths.py not using absolute_import | |
94 | tests/test-hybridencode.py not using absolute_import |
|
93 | tests/test-hybridencode.py not using absolute_import | |
95 | tests/test-hybridencode.py requires print_function |
|
94 | tests/test-hybridencode.py requires print_function | |
96 | tests/test-lrucachedict.py not using absolute_import |
|
95 | tests/test-lrucachedict.py not using absolute_import | |
97 | tests/test-lrucachedict.py requires print_function |
|
96 | tests/test-lrucachedict.py requires print_function | |
98 | tests/test-manifest.py not using absolute_import |
|
97 | tests/test-manifest.py not using absolute_import | |
99 | tests/test-minirst.py not using absolute_import |
|
98 | tests/test-minirst.py not using absolute_import | |
100 | tests/test-minirst.py requires print_function |
|
99 | tests/test-minirst.py requires print_function | |
101 | tests/test-parseindex2.py not using absolute_import |
|
100 | tests/test-parseindex2.py not using absolute_import | |
102 | tests/test-parseindex2.py requires print_function |
|
101 | tests/test-parseindex2.py requires print_function | |
103 | tests/test-pathencode.py not using absolute_import |
|
102 | tests/test-pathencode.py not using absolute_import | |
104 | tests/test-pathencode.py requires print_function |
|
103 | tests/test-pathencode.py requires print_function | |
105 | tests/test-propertycache.py not using absolute_import |
|
104 | tests/test-propertycache.py not using absolute_import | |
106 | tests/test-propertycache.py requires print_function |
|
105 | tests/test-propertycache.py requires print_function | |
107 | tests/test-revlog-ancestry.py not using absolute_import |
|
106 | tests/test-revlog-ancestry.py not using absolute_import | |
108 | tests/test-revlog-ancestry.py requires print_function |
|
107 | tests/test-revlog-ancestry.py requires print_function | |
109 | tests/test-run-tests.py not using absolute_import |
|
108 | tests/test-run-tests.py not using absolute_import | |
110 | tests/test-simplemerge.py not using absolute_import |
|
109 | tests/test-simplemerge.py not using absolute_import | |
111 | tests/test-status-inprocess.py not using absolute_import |
|
110 | tests/test-status-inprocess.py not using absolute_import | |
112 | tests/test-status-inprocess.py requires print_function |
|
111 | tests/test-status-inprocess.py requires print_function | |
113 | tests/test-symlink-os-yes-fs-no.py not using absolute_import |
|
112 | tests/test-symlink-os-yes-fs-no.py not using absolute_import | |
114 | tests/test-trusted.py not using absolute_import |
|
113 | tests/test-trusted.py not using absolute_import | |
115 | tests/test-trusted.py requires print_function |
|
114 | tests/test-trusted.py requires print_function | |
116 | tests/test-ui-color.py not using absolute_import |
|
115 | tests/test-ui-color.py not using absolute_import | |
117 | tests/test-ui-color.py requires print_function |
|
116 | tests/test-ui-color.py requires print_function | |
118 | tests/test-ui-config.py not using absolute_import |
|
117 | tests/test-ui-config.py not using absolute_import | |
119 | tests/test-ui-config.py requires print_function |
|
118 | tests/test-ui-config.py requires print_function | |
120 | tests/test-ui-verbosity.py not using absolute_import |
|
119 | tests/test-ui-verbosity.py not using absolute_import | |
121 | tests/test-ui-verbosity.py requires print_function |
|
120 | tests/test-ui-verbosity.py requires print_function | |
122 | tests/test-url.py not using absolute_import |
|
121 | tests/test-url.py not using absolute_import | |
123 | tests/test-url.py requires print_function |
|
122 | tests/test-url.py requires print_function | |
124 | tests/test-walkrepo.py requires print_function |
|
123 | tests/test-walkrepo.py requires print_function | |
125 | tests/test-wireproto.py requires print_function |
|
124 | tests/test-wireproto.py requires print_function | |
126 | tests/tinyproxy.py requires print_function |
|
125 | tests/tinyproxy.py requires print_function |
General Comments 0
You need to be logged in to leave comments.
Login now