2015-10-22 18:02:30 +03:00
|
|
|
try:
|
2016-04-08 21:48:31 +03:00
|
|
|
from setuptools import setup, Extensions
|
2015-10-22 18:02:30 +03:00
|
|
|
except ImportError:
|
2016-04-08 21:48:31 +03:00
|
|
|
from distutils.core import setup, Extension
|
2013-06-20 23:16:36 +04:00
|
|
|
|
|
|
|
setup(
|
2013-06-20 23:57:57 +04:00
|
|
|
name='fbhgext',
|
2016-03-29 04:44:56 +03:00
|
|
|
version='0.1.2',
|
2013-06-20 23:16:36 +04:00
|
|
|
author='Durham Goode',
|
|
|
|
maintainer='Durham Goode',
|
|
|
|
maintainer_email='durham@fb.com',
|
|
|
|
url='',
|
|
|
|
description='Facebook specific mercurial extensions',
|
|
|
|
long_description="",
|
|
|
|
keywords='fb hg mercurial',
|
|
|
|
license='',
|
2016-05-11 04:29:53 +03:00
|
|
|
packages=[
|
2016-05-26 22:34:38 +03:00
|
|
|
'fastmanifest',
|
2016-05-11 04:29:53 +03:00
|
|
|
'phabricator',
|
|
|
|
'sqldirstate',
|
|
|
|
],
|
2014-05-24 01:39:33 +04:00
|
|
|
py_modules=[
|
2016-03-22 20:45:57 +03:00
|
|
|
'arcdiff',
|
2014-05-24 01:39:33 +04:00
|
|
|
'backups',
|
2016-02-05 02:59:17 +03:00
|
|
|
'bundle2hooks',
|
2016-02-03 02:00:54 +03:00
|
|
|
'catnotate',
|
2014-11-19 21:10:03 +03:00
|
|
|
'chistedit',
|
2015-04-30 20:14:52 +03:00
|
|
|
'commitextras',
|
2015-11-03 01:58:06 +03:00
|
|
|
'dirsync',
|
2016-01-15 20:08:03 +03:00
|
|
|
'errorredirect',
|
2016-02-11 02:46:24 +03:00
|
|
|
'extutil',
|
2014-05-24 01:39:33 +04:00
|
|
|
'fbamend',
|
2015-05-14 23:04:08 +03:00
|
|
|
'fbconduit',
|
2014-10-21 07:11:53 +04:00
|
|
|
'fbhistedit',
|
2014-05-24 01:39:33 +04:00
|
|
|
'githelp',
|
|
|
|
'gitlookup',
|
2014-09-09 02:36:12 +04:00
|
|
|
'gitrevset',
|
2015-05-18 21:38:11 +03:00
|
|
|
'inhibitwarn',
|
2016-02-13 00:39:46 +03:00
|
|
|
'manifestdiskcache',
|
2015-10-15 10:37:45 +03:00
|
|
|
'mergedriver',
|
2015-10-07 00:04:01 +03:00
|
|
|
'morestatus',
|
2016-06-23 21:30:36 +03:00
|
|
|
'nointerrupt',
|
2016-06-20 16:06:37 +03:00
|
|
|
'patchpython',
|
2015-09-30 00:22:46 +03:00
|
|
|
'perftweaks',
|
2014-12-03 20:33:02 +03:00
|
|
|
'phabdiff',
|
2014-05-24 01:39:33 +04:00
|
|
|
'phrevset',
|
2015-11-10 00:24:13 +03:00
|
|
|
'phabstatus',
|
2016-01-11 21:27:16 +03:00
|
|
|
'pullcreatemarkers',
|
2015-07-08 05:10:17 +03:00
|
|
|
'pushrebase',
|
2015-05-20 01:24:37 +03:00
|
|
|
'pushvars',
|
2014-11-04 10:03:09 +03:00
|
|
|
'rage',
|
2014-10-10 22:32:17 +04:00
|
|
|
'reflog',
|
2014-10-30 01:01:02 +03:00
|
|
|
'reset',
|
2016-06-10 02:34:04 +03:00
|
|
|
'sampling',
|
Make 'hg show' a native command
Summary:
There are a few ways in which the 'hg show' alias doesn't work for users:
1) if your argument to 'hg show' isn't in exactly the right form, you get confusing messages (e.g. if you run 'hg show --help').
2) It's slow compared to 'git show', and needs speeding up. There's some low-hanging fruit identified by bryano, and having the command as a native command makes it easier to go there.
As a first step towards fixing this, reimplement the existing alias as a Python extension, aiming for minimum behaviour changes. We can inline the implementation of 'hg log' when we need to.
Test Plan:
Run the new automatic test test-show.t:
: /data/users/simonfar/fb-hgext (hg) [nativeshow]
: simonfar@devvm148 tests $ ../../hg/tests/run-tests.py -l test-show.t
.
# Ran 1 tests, 0 skipped, 0 warned, 0 failed.
Note that this means that review needs to cover the automatic test, too, in case I've missed anything important
Reviewers: #sourcecontrol, lcharignon, ttung, rmcelroy
Reviewed By: lcharignon, rmcelroy
Subscribers: rmcelroy, lcharignon, #sourcecontrol
Differential Revision: https://phabricator.fb.com/D2820421
Tasks: 9323445, 9599994
Signature: t1:2820421:1452541611:02efa59739f690b30053d93e0d47adf0aef8dbf4
2016-01-12 22:20:28 +03:00
|
|
|
'show',
|
2014-11-19 21:10:03 +03:00
|
|
|
'simplecache',
|
2014-05-24 01:39:33 +04:00
|
|
|
'smartlog',
|
2014-12-03 00:50:22 +03:00
|
|
|
'sparse',
|
2015-09-07 23:46:29 +03:00
|
|
|
'statprof',
|
2016-06-09 21:36:07 +03:00
|
|
|
'statprofext',
|
2014-07-23 20:47:35 +04:00
|
|
|
'tweakdefaults',
|
2014-12-18 00:40:52 +03:00
|
|
|
'upgradegeneraldelta',
|
2014-05-24 01:39:33 +04:00
|
|
|
],
|
2016-04-08 21:48:31 +03:00
|
|
|
ext_modules = [
|
2016-05-26 21:34:56 +03:00
|
|
|
Extension('cfastmanifest',
|
|
|
|
sources=['cfastmanifest.c',
|
2016-05-26 21:33:07 +03:00
|
|
|
'cfastmanifest/bsearch.c',
|
|
|
|
'cfastmanifest/buffer.c',
|
|
|
|
'cfastmanifest/checksum.c',
|
|
|
|
'cfastmanifest/node.c',
|
|
|
|
'cfastmanifest/tree.c',
|
|
|
|
'cfastmanifest/tree_arena.c',
|
|
|
|
'cfastmanifest/tree_convert.c',
|
|
|
|
'cfastmanifest/tree_copy.c',
|
|
|
|
'cfastmanifest/tree_diff.c',
|
|
|
|
'cfastmanifest/tree_disk.c',
|
|
|
|
'cfastmanifest/tree_iterator.c',
|
|
|
|
'cfastmanifest/tree_path.c',
|
2016-04-19 01:40:42 +03:00
|
|
|
],
|
2016-05-26 21:33:07 +03:00
|
|
|
include_dirs=['cfastmanifest',
|
2016-04-19 01:40:42 +03:00
|
|
|
'/usr/local/include',
|
|
|
|
'/opt/local/include',
|
|
|
|
],
|
|
|
|
library_dirs=[
|
|
|
|
'/usr/local/lib',
|
|
|
|
'/opt/local/lib',
|
|
|
|
],
|
|
|
|
libraries=['crypto',
|
|
|
|
],
|
2016-06-10 08:45:05 +03:00
|
|
|
extra_compile_args=[
|
|
|
|
"-std=c99",
|
|
|
|
"-Wall",
|
|
|
|
"-Werror", "-Werror=strict-prototypes"],
|
2016-04-19 01:40:42 +03:00
|
|
|
)
|
2016-04-08 21:48:31 +03:00
|
|
|
],
|
2013-06-20 23:16:36 +04:00
|
|
|
)
|