# HG changeset patch # User Alain Mazy # Date 1699906534 -3600 # Node ID 1078942460cc9efb4209575c430b27456210e2cb # Parent 5fb01c5882877f67b27437624c3bf0e81f5a653d sync orthanc folder diff -r 5fb01c588287 -r 1078942460cc CMakeLists.txt --- a/CMakeLists.txt Wed Oct 11 15:58:27 2023 +0200 +++ b/CMakeLists.txt Mon Nov 13 21:15:34 2023 +0100 @@ -188,3 +188,5 @@ set_target_properties(UnitTests PROPERTIES COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0 ) + +DefineSourceBasenameForTarget(UnitTests) \ No newline at end of file diff -r 5fb01c588287 -r 1078942460cc Resources/Orthanc/CMake/DownloadOrthancFramework.cmake --- a/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake Wed Oct 11 15:58:27 2023 +0200 +++ b/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake Mon Nov 13 21:15:34 2023 +0100 @@ -271,7 +271,7 @@ else() message("Forking the Orthanc source repository using Mercurial") execute_process( - COMMAND ${ORTHANC_FRAMEWORK_HG} clone "https://hg.orthanc-server.com/orthanc/" + COMMAND ${ORTHANC_FRAMEWORK_HG} clone "https://orthanc.uclouvain.be/hg/orthanc/" WORKING_DIRECTORY ${CMAKE_BINARY_DIR} RESULT_VARIABLE Failure ) diff -r 5fb01c588287 -r 1078942460cc Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp --- a/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp Wed Oct 11 15:58:27 2023 +0200 +++ b/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp Mon Nov 13 21:15:34 2023 +0100 @@ -79,6 +79,10 @@ } } + void ResetGlobalContext() + { + globalContext_ = NULL; + } bool HasGlobalContext() { diff -r 5fb01c588287 -r 1078942460cc Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h --- a/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h Wed Oct 11 15:58:27 2023 +0200 +++ b/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h Mon Nov 13 21:15:34 2023 +0100 @@ -137,6 +137,8 @@ void SetGlobalContext(OrthancPluginContext* context); + void ResetGlobalContext(); + bool HasGlobalContext(); OrthancPluginContext* GetGlobalContext(); diff -r 5fb01c588287 -r 1078942460cc Resources/SyncOrthancFolder.py --- a/Resources/SyncOrthancFolder.py Wed Oct 11 15:58:27 2023 +0200 +++ b/Resources/SyncOrthancFolder.py Mon Nov 13 21:15:34 2023 +0100 @@ -12,7 +12,7 @@ TARGET = os.path.join(os.path.dirname(__file__), 'Orthanc') PLUGIN_SDK_VERSION = '1.12.1' -REPOSITORY = 'https://hg.orthanc-server.com/orthanc/raw-file' +REPOSITORY = 'https://orthanc.uclouvain.be/hg/orthanc/raw-file' FILES = [ ('OrthancFramework/Resources/CMake/AutoGeneratedCode.cmake', 'CMake'),