update the buck build to use the same main module as non-buck builds

Summary:
Update the buck build to use the "hg" script as its main module, rather than
using its own custom mercurial/main.py file.

This also changes how the extensions code decides whether to perform strict
checks or not.  Previously this was disabled for buck builds by checking the
entrypoint argument.  Now that buck builds use the same main module the
entrypoint is the same.  Therefore we now distinguish buck-based builds based
on the presence of the `__manifest__` module.

Reviewed By: ryanmce

Differential Revision: D8601651

fbshipit-source-id: abfea4c6d91596149c240baa1bead740dffe8750
This commit is contained in:
Adam Simpkins 2018-06-27 12:16:27 -07:00 committed by Facebook Github Bot
parent c0dd4be8e5
commit 86cdb2e0a6

View File

@ -1,15 +0,0 @@
# Copyright 2018 Facebook, Inc.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
if __name__ == "__main__":
import hgdemandimport
hgdemandimport.enable()
from . import dispatch
dispatch.run(entrypoint="mercurial.main")