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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     1
/*
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     2
 * $Header$
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     3
 *
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     4
 * DO NOT EDIT
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     5
 * automagically generated from the projectDefinition: stx_libscm_common.
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     6
 */
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     7
#define __INDIRECTVMINITCALLS__
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     8
#include <stc.h>
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     9
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    10
#ifdef WIN32
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    11
# pragma codeseg INITCODE "INITCODE"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    12
#endif
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    13
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    14
#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    15
DLL_EXPORT void _libstx_libscm_common_Init() INIT_TEXT_SECTION;
269
9fe7ec430706 SCMAbstractPackageModel: set repositoryRoot relative to parent when parent is set using #setParent:.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 90
diff changeset
    16
DLL_EXPORT void _libstx_libscm_common_InitDefinition() INIT_TEXT_SECTION;
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    17
#endif
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    18
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    19
extern void _SCMAbstractDialog_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    20
extern void _SCMAbstractPackageModel_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    21
extern void _SCMAbstractPackageWorkingCopyRegistry_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    22
extern void _SCMAbstractRevisionInfo_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    23
extern void _SCMAbstractSourceCodeManager_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    24
extern void _SCMAbstractTask_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    25
extern void _SCMCodeMonitor_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    26
extern void _SCMCommonPackageModelGroup_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    27
extern void _SCMCommonSourceCodeManagerUtilities_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    28
extern void _SCMCompatModeQuery_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    29
extern void _SCMCopyrightLine_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    30
extern void _SCMCopyrightUpdater_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    31
extern void _SCMError_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
909
993b38cb97dd Introduce `SCMMergeTool` - a merge tool for Smalltalk/X source files
Jan Vrany <jan.vrany@labware.com>
parents: 903
diff changeset
    32
extern void _SCMMergeTool_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
993b38cb97dd Introduce `SCMMergeTool` - a merge tool for Smalltalk/X source files
Jan Vrany <jan.vrany@labware.com>
parents: 903
diff changeset
    33
extern void _SCMMergeToolStartup_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    34
extern void _SCMWarning_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    35
extern void _stx_137libscm_137common_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    36
extern void _SCMAbstractCommitDialog_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    37
extern void _SCMAbstractFileoutLikeTask_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    38
extern void _SCMAbstractPackageRevision_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    39
extern void _SCMAbstractPackageWorkingCopy_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    40
extern void _SCMPackageModelError_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    41
extern void _SCMPackageModelWarning_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    42
extern void _SCMAbstractCommitTask_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    43
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    44
extern void _stx_137libscm_137common_extensions_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    45
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    46
void _libstx_libscm_common_InitDefinition(int pass, struct __vmData__ *__pRT__, OBJ snd)
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    47
{
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    48
  __BEGIN_PACKAGE2__("libstx_libscm_common__DFN", _libstx_libscm_common_InitDefinition, "stx:libscm/common");
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    49
    _stx_137libscm_137common_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    50
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    51
  __END_PACKAGE__();
269
9fe7ec430706 SCMAbstractPackageModel: set repositoryRoot relative to parent when parent is set using #setParent:.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 90
diff changeset
    52
}
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    53
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    54
void _libstx_libscm_common_Init(int pass, struct __vmData__ *__pRT__, OBJ snd)
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    55
{
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    56
  __BEGIN_PACKAGE2__("libstx_libscm_common", _libstx_libscm_common_Init, "stx:libscm/common");
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    57
    _SCMAbstractDialog_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    58
    _SCMAbstractPackageModel_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    59
    _SCMAbstractPackageWorkingCopyRegistry_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    60
    _SCMAbstractRevisionInfo_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    61
    _SCMAbstractSourceCodeManager_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    62
    _SCMAbstractTask_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    63
    _SCMCodeMonitor_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    64
    _SCMCommonPackageModelGroup_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    65
    _SCMCommonSourceCodeManagerUtilities_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    66
    _SCMCompatModeQuery_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    67
    _SCMCopyrightLine_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    68
    _SCMCopyrightUpdater_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    69
    _SCMError_Init(pass,__pRT__,snd);
909
993b38cb97dd Introduce `SCMMergeTool` - a merge tool for Smalltalk/X source files
Jan Vrany <jan.vrany@labware.com>
parents: 903
diff changeset
    70
    _SCMMergeTool_Init(pass,__pRT__,snd);
993b38cb97dd Introduce `SCMMergeTool` - a merge tool for Smalltalk/X source files
Jan Vrany <jan.vrany@labware.com>
parents: 903
diff changeset
    71
    _SCMMergeToolStartup_Init(pass,__pRT__,snd);
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    72
    _SCMWarning_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    73
    _stx_137libscm_137common_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    74
    _SCMAbstractCommitDialog_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    75
    _SCMAbstractFileoutLikeTask_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    76
    _SCMAbstractPackageRevision_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    77
    _SCMAbstractPackageWorkingCopy_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    78
    _SCMPackageModelError_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    79
    _SCMPackageModelWarning_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    80
    _SCMAbstractCommitTask_Init(pass,__pRT__,snd);
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    81
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    82
    _stx_137libscm_137common_extensions_Init(pass,__pRT__,snd);
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    83
  __END_PACKAGE__();
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    84
}