Commit Graph

7 Commits

Author SHA1 Message Date
Laurent Charignon
7830092e84 cleanup: add test-check-code-hg.t
Summary: Final diff of the series

Test Plan:
All tests pass with --extra-config=extensions.lz4revlog= needed
to run check-code

Reviewers: #sourcecontrol, ttung

Differential Revision: https://phabricator.fb.com/D2812684
2016-01-11 10:19:22 -08:00
Laurent Charignon
50733a9381 cleanup: use is None and is not None instead of == or !=
Summary: This diff is part of a series to cleanup fb-hgext and make it pass check-code.

Test Plan: all tests pass

Reviewers: #sourcecontrol, ttung

Differential Revision: https://phabricator.fb.com/D2811954
2016-01-07 18:30:24 -08:00
Laurent Charignon
a42808982c cleanup: fix the "line too long" warnings
Summary: This diff is part of a series to cleanup fb-hgext and make it pass check-code.

Test Plan: all tests pass

Reviewers: #sourcecontrol, ttung

Differential Revision: https://phabricator.fb.com/D2811926
2016-01-07 18:30:24 -08:00
Laurent Charignon
53a55a42c1 cleanup: fix legacy exception syntax
Summary: This diff is part of a series to cleanup fb-hgext and make it pass check-code.

Test Plan: all tests pass

Reviewers: #sourcecontrol, ttung

Differential Revision: https://phabricator.fb.com/D2811871
2016-01-07 18:30:24 -08:00
Tony Tung
58fb220285 add the ability to specify a destination for the statprof data
Summary:
This allows us to target the statprof data at a file of the
wrapper's choosing.

Test Plan: HGPROF=stat STATPROF_DEST=/tmp/statprof.data PYTHONPATH=/Users/tonytung/work/mercurial/facebook-hg-rpms/fb-hgext hg.real --profile status

Reviewers: durham, ericsumner, rmcelroy

Reviewed By: rmcelroy

Subscribers: mitrandir

Differential Revision: https://phabricator.fb.com/D2715997

Signature: t1:2715997:1449105707:c07c83c0889c33cc693836917100d3007d0b631b
2015-12-02 21:54:56 -08:00
Durham Goode
1aa331964a statprof: fix writing data to bad home dirs
statprof attempts to save data to the user's home dir, for future investigation.
If this fails (because of permission issues, or because the home dir doesn't
exist), it was failing the command entirely.  Let's catch and eat those
exceptions.
2015-09-07 17:32:12 -07:00
Durham Goode
1ce3b1fcaf Add statprof 2015-09-07 13:46:29 -07:00