Show More
@@ -534,7 +534,7 b' def makelocalrepository(baseui, path, in' | |||
|
534 | 534 | for iface, fn in REPO_INTERFACES: |
|
535 | 535 | # We pass all potentially useful state to give extensions tons of |
|
536 | 536 | # flexibility. |
|
537 | typ = fn(ui=ui, | |
|
537 | typ = fn()(ui=ui, | |
|
538 | 538 | intents=intents, |
|
539 | 539 | requirements=requirements, |
|
540 | 540 | features=features, |
@@ -803,10 +803,12 b' def makefilestorage(requirements, featur' | |||
|
803 | 803 | |
|
804 | 804 | # List of repository interfaces and factory functions for them. Each |
|
805 | 805 | # will be called in order during ``makelocalrepository()`` to iteratively |
|
806 | # derive the final type for a local repository instance. | |
|
806 | # derive the final type for a local repository instance. We capture the | |
|
807 | # function as a lambda so we don't hold a reference and the module-level | |
|
808 | # functions can be wrapped. | |
|
807 | 809 | REPO_INTERFACES = [ |
|
808 | (repository.ilocalrepositorymain, makemain), | |
|
809 | (repository.ilocalrepositoryfilestorage, makefilestorage), | |
|
810 | (repository.ilocalrepositorymain, lambda: makemain), | |
|
811 | (repository.ilocalrepositoryfilestorage, lambda: makefilestorage), | |
|
810 | 812 | ] |
|
811 | 813 | |
|
812 | 814 | @interfaceutil.implementer(repository.ilocalrepositorymain) |
General Comments 0
You need to be logged in to leave comments.
Login now