common/libInit.cc
author Jan Vrany <jan.vrany@labware.com>
Fri, 19 Feb 2021 08:29:41 +0000
changeset 924 4d92f234f671
parent 909 993b38cb97dd
permissions -rw-r--r--
Rework and fix HGSourceCodeManager >> #revisionLogOf:...directory:module:` This commit changes the logic in two ways: 1. #newestRevision is now the newest revision in the branch that *contains* given file (not necesarily modidfes it). If there are multiple heads in that branch, pretty much random one is returned. This changes old behavior and therefore this commit updates tests. 2. If a specific single revision is requested, i.e., both from and to revisions are the same, revision log with that single revision is returned no matter whether it modifies the file or even contains that file at all. This is essentially a workaround to fix issue #305. Moreover, this commit simplifies the code a lot by delegating all the changeset searching and filtering to mercurial using revset expressions. See https://swing.fit.cvut.cz/projects/stx-jv/ticket/305#comment:3

/*
 * $Header$
 *
 * DO NOT EDIT
 * automagically generated from the projectDefinition: stx_libscm_common.
 */
#define __INDIRECTVMINITCALLS__
#include <stc.h>

#ifdef WIN32
# pragma codeseg INITCODE "INITCODE"
#endif

#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
DLL_EXPORT void _libstx_libscm_common_Init() INIT_TEXT_SECTION;
DLL_EXPORT void _libstx_libscm_common_InitDefinition() INIT_TEXT_SECTION;
#endif

extern void _SCMAbstractDialog_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractPackageModel_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractPackageWorkingCopyRegistry_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractRevisionInfo_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractSourceCodeManager_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractTask_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMCodeMonitor_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMCommonPackageModelGroup_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMCommonSourceCodeManagerUtilities_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMCompatModeQuery_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMCopyrightLine_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMCopyrightUpdater_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMError_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMMergeTool_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMMergeToolStartup_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMWarning_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _stx_137libscm_137common_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractCommitDialog_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractFileoutLikeTask_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractPackageRevision_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractPackageWorkingCopy_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMPackageModelError_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMPackageModelWarning_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SCMAbstractCommitTask_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);

extern void _stx_137libscm_137common_extensions_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);

void _libstx_libscm_common_InitDefinition(int pass, struct __vmData__ *__pRT__, OBJ snd)
{
  __BEGIN_PACKAGE2__("libstx_libscm_common__DFN", _libstx_libscm_common_InitDefinition, "stx:libscm/common");
    _stx_137libscm_137common_Init(pass,__pRT__,snd);

  __END_PACKAGE__();
}

void _libstx_libscm_common_Init(int pass, struct __vmData__ *__pRT__, OBJ snd)
{
  __BEGIN_PACKAGE2__("libstx_libscm_common", _libstx_libscm_common_Init, "stx:libscm/common");
    _SCMAbstractDialog_Init(pass,__pRT__,snd);
    _SCMAbstractPackageModel_Init(pass,__pRT__,snd);
    _SCMAbstractPackageWorkingCopyRegistry_Init(pass,__pRT__,snd);
    _SCMAbstractRevisionInfo_Init(pass,__pRT__,snd);
    _SCMAbstractSourceCodeManager_Init(pass,__pRT__,snd);
    _SCMAbstractTask_Init(pass,__pRT__,snd);
    _SCMCodeMonitor_Init(pass,__pRT__,snd);
    _SCMCommonPackageModelGroup_Init(pass,__pRT__,snd);
    _SCMCommonSourceCodeManagerUtilities_Init(pass,__pRT__,snd);
    _SCMCompatModeQuery_Init(pass,__pRT__,snd);
    _SCMCopyrightLine_Init(pass,__pRT__,snd);
    _SCMCopyrightUpdater_Init(pass,__pRT__,snd);
    _SCMError_Init(pass,__pRT__,snd);
    _SCMMergeTool_Init(pass,__pRT__,snd);
    _SCMMergeToolStartup_Init(pass,__pRT__,snd);
    _SCMWarning_Init(pass,__pRT__,snd);
    _stx_137libscm_137common_Init(pass,__pRT__,snd);
    _SCMAbstractCommitDialog_Init(pass,__pRT__,snd);
    _SCMAbstractFileoutLikeTask_Init(pass,__pRT__,snd);
    _SCMAbstractPackageRevision_Init(pass,__pRT__,snd);
    _SCMAbstractPackageWorkingCopy_Init(pass,__pRT__,snd);
    _SCMPackageModelError_Init(pass,__pRT__,snd);
    _SCMPackageModelWarning_Init(pass,__pRT__,snd);
    _SCMAbstractCommitTask_Init(pass,__pRT__,snd);

    _stx_137libscm_137common_extensions_Init(pass,__pRT__,snd);
  __END_PACKAGE__();
}