mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
bcd74ba1c5
Summary: rage is a basic tool to collect diagnostic information that should not break. To ensure it works all the time, this patch: - unbreaks hg rage from upstream change dad6404ccd - wraps every non-trivial functions with `try`, `catch` - adds a naive test about `hg rage --preview` Test Plan: Run `test-rage.t`. Comment out `import blackbox` and check: ``` hg blackbox -l20: --------------------------- (Failed. See footnote [1]) [1]: global name 'blackbox' is not defined Traceback (most recent call last): File "/home/quark/fb-hgext/rage.py", line 22, in _failsafe return func() File "/home/quark/fb-hgext/rage.py", line 97, in <lambda> _failsafe(lambda: hgcmd(blackbox.blackbox, limit=20))), NameError: global name 'blackbox' is not defined ``` Reviewers: #sourcecontrol, wez, ttung, durham Reviewed By: durham Subscribers: durham, wez, mjpieters Differential Revision: https://phabricator.fb.com/D2928778 Tasks: 10028490 Signature: t1:2928778:1455240651:d39ceed5d045e279160690e0a93a4e326d307db3 |
||
---|---|---|
.. | ||
conduithttp.py | ||
copytrace.sh | ||
dummyext1.py | ||
dummyext2.py | ||
histedit-helpers.sh | ||
killdaemons.py | ||
README | ||
test-automv.t | ||
test-backup.t | ||
test-catnotate.t | ||
test-check-code-hg.t | ||
test-commitextras.t | ||
test-copytrace-bundle2.t | ||
test-copytrace.t | ||
test-dirsync.t | ||
test-errorredirect.t | ||
test-extorder.t | ||
test-fbamend.t | ||
test-fbconduit.t | ||
test-fbhistedit-exec-obsolete.t | ||
test-fbhistedit-exec.t | ||
test-fbhistedit-rebase-interactive.t | ||
test-fbhistedit-stop-obsolete.t | ||
test-fbhistedit-stop.t | ||
test-filldb.t | ||
test-git-getmeta.t | ||
test-githelp.t | ||
test-inhibitwarn.t | ||
test-manifestdiskcache.t | ||
test-mergedriver.t | ||
test-morestatus.t | ||
test-perftweaks.t | ||
test-phabdiff.t | ||
test-pull-createmarkers.t | ||
test-pushrebase-protection.t | ||
test-pushrebase-remotenames.t | ||
test-pushrebase.t | ||
test-pushvars-remotenames.t | ||
test-pushvars.t | ||
test-rage.t | ||
test-reflog-remotenames.t | ||
test-reflog.t | ||
test-reset-remotenames.t | ||
test-reset.t | ||
test-show.t | ||
test-simplecache.t | ||
test-smartlog-remotenames.t | ||
test-smartlog.t | ||
test-sparse-clone.t | ||
test-sparse-extensions.t | ||
test-sparse-merges.t | ||
test-sparse-profiles.t | ||
test-sparse.t | ||
test-tweakdefaults-histgrep.t | ||
test-tweakdefaults-ordering.t | ||
test-tweakdefaults-remotenames.t | ||
test-tweakdefaults.t |
How to run Facebook experimental extensions tests ================================================= Running the tests ----------------- To run the tests, `cd` into this directory (./tests/) and run the `run-tests.py` script from the core Mercurial repository (tests directory too). For example if you have a 'hg-crew' repository checked out next to this one, use: ../../hg-crew/tests/run-tests.py Obtaining the test runners -------------------------- If you do not already have a copy of the Mercurial repository, you can obtains one with: $ hg clone http://selenic.com/hg/ Running against various Mercurial versions ------------------------------------------ By default, the test runners will run against the version of Mercurial in the repository it lives in. you can run againts other version of Mercurial using the --with-hg=PATH flag. For example to run against the installed version of Mercurial you can use --with-hg=`which hg`