mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
github: move post-* hook to uisetup
Summary: based on the doc of writing extensions, post-* hooks should be setup in the `uisetup` ``` 10.1. uisetup * Changes to ui.__class__ . The ui object that will be used to run the command has not yet been created. ... * Setup of pre-* and post-* hooks 10.2. extsetup * Changes depending on the status of other extensions. (if extensions.find('mq')) * Add a global option to all commands * Extend revset 10.3. reposetup * All hooks but pre-* and post-* * Modify configuration variables * Changes to repo.__class__, repo.dirstate.__class__ ``` Reviewed By: sggutier Differential Revision: D44632035 fbshipit-source-id: f37bb052a2ab225d43cf7f305b0bcccedb4add9c
This commit is contained in:
parent
a7bf8e9615
commit
fc798609de
@ -56,9 +56,12 @@ def unlink_closed_pr_hint() -> str:
|
||||
)
|
||||
|
||||
|
||||
def uisetup(ui):
|
||||
ui.setconfig("hooks", "post-pull.prmarker", pr_marker.cleanup_landed_pr_hook)
|
||||
|
||||
|
||||
def extsetup(ui):
|
||||
pr_status.setup_smartset_prefetch()
|
||||
ui.setconfig("hooks", "post-pull.prmarker", pr_marker.cleanup_landed_pr_hook)
|
||||
|
||||
|
||||
@command(
|
||||
|
Loading…
Reference in New Issue
Block a user