mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
a6e1589c4f
Summary: Since `handlecommandexception` is in core, wrap it to suppress original crash text, instead of doing an ugly `sys.exit()`. It's much simpler and cleaner than before. It also fixes an issue with current chg since chgserver will print an traceback when it encounters SystemExit. Although `logtoprocess` are doing very similar things with `errorredirect`, it currently cannot replace `errorredirect` because we need synchronized behavior to return the user to their shell prompt correctly. If we can get the synchronized behavior and a way to disable builtin warning (may be tricky) in `logtoprocess` upstream, the `errorredirect` extension could be just a thin wrapper around `logtoprocess` using `setconfig`. Besides, we no longer need `suppresscommandfailure` since the feature will be either in `errorredirect` or `logtoprocess`. Test Plan: Run `hg crash` with `errorredirect.script` set to confirm it is compatible with the old behavior. Also run unittest `test-errorredirect.t` Reviewers: #sourcecontrol, ttung, mjpieters Reviewed By: mjpieters Subscribers: rmcelroy, durham, lcharignon, mjpieters Differential Revision: https://phabricator.fb.com/D3191840 Signature: t1:3191840:1461088280:77febd539c2f38a55778af3977738c045f63a0d8
83 lines
2.2 KiB
Python
83 lines
2.2 KiB
Python
try:
|
|
from setuptools import setup, Extensions
|
|
except ImportError:
|
|
from distutils.core import setup, Extension
|
|
|
|
setup(
|
|
name='fbhgext',
|
|
version='0.1.2',
|
|
author='Durham Goode',
|
|
maintainer='Durham Goode',
|
|
maintainer_email='durham@fb.com',
|
|
url='',
|
|
description='Facebook specific mercurial extensions',
|
|
long_description="",
|
|
keywords='fb hg mercurial',
|
|
license='',
|
|
py_modules=[
|
|
'arcdiff',
|
|
'backups',
|
|
'bundle2hooks',
|
|
'catnotate',
|
|
'chistedit',
|
|
'commitextras',
|
|
'dirsync',
|
|
'errorredirect',
|
|
'extutil',
|
|
'fastmanifest',
|
|
'fbamend',
|
|
'fbconduit',
|
|
'fbhistedit',
|
|
'githelp',
|
|
'gitlookup',
|
|
'gitrevset',
|
|
'inhibitwarn',
|
|
'manifestdiskcache',
|
|
'mergedriver',
|
|
'morestatus',
|
|
'perftweaks',
|
|
'phabdiff',
|
|
'phrevset',
|
|
'phabstatus',
|
|
'pullcreatemarkers',
|
|
'pushrebase',
|
|
'pushvars',
|
|
'rage',
|
|
'reflog',
|
|
'reset',
|
|
'show',
|
|
'simplecache',
|
|
'smartlog',
|
|
'sparse',
|
|
'statprof',
|
|
'tweakdefaults',
|
|
'upgradegeneraldelta',
|
|
],
|
|
ext_modules = [
|
|
Extension('fastmanifest_wrapper',
|
|
sources=['fastmanifest_wrapper.c',
|
|
'fastmanifest/bsearch.c',
|
|
'fastmanifest/buffer.c',
|
|
'fastmanifest/checksum.c',
|
|
'fastmanifest/node.c',
|
|
'fastmanifest/tree.c',
|
|
'fastmanifest/tree_arena.c',
|
|
'fastmanifest/tree_convert.c',
|
|
'fastmanifest/tree_convert_rt.c',
|
|
'fastmanifest/tree_copy.c',
|
|
'fastmanifest/tree_path.c',
|
|
],
|
|
include_dirs=['fastmanifest',
|
|
'/usr/local/include',
|
|
'/opt/local/include',
|
|
],
|
|
library_dirs=[
|
|
'/usr/local/lib',
|
|
'/opt/local/lib',
|
|
],
|
|
libraries=['crypto',
|
|
],
|
|
)
|
|
],
|
|
)
|