Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch feature/rewrite-multi-async Excluding Merge-Ins
This is equivalent to a diff from e1d5f80a24 to e7b75b1a22
2016-11-30
| ||
21:01 | Updated help link to online help. Leaf check-in: adee355c70 user: tinus tags: trunk | |
2016-02-25
| ||
20:36 | Implemented many methods for Fossil. Turned several methods into class methods. Leaf check-in: e7b75b1a22 user: tinus tags: feature/rewrite-multi-async | |
2016-02-22
| ||
19:28 | Added CreateProcess wrapper. Added first UI methods for Fossil. check-in: da9ee3161e user: tinus tags: feature/rewrite-multi-async | |
2016-02-14
| ||
14:11 | New branch to completely rewrite the wizard, this time modularizing VCS Clients properly from the start, and also supporting threading. check-in: 7183f7960c user: tinus tags: feature/rewrite-multi-async | |
2016-01-11
| ||
16:48 | Comments. check-in: e1d5f80a24 user: tinus tags: trunk | |
2015-12-08
| ||
08:00 | Updated todo. check-in: a39f256989 user: tinus tags: trunk | |
Added .fossil-settings/binary-glob.
> > > > > > > | 1 2 3 4 5 6 7 | *.bmp *.gif *.jpeg *.jpg *.ico *.pdf *.png |
Added .fossil-settings/binary-glob.no-warn.
Added .fossil-settings/ignore-glob.
> > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 | __history/ __recovery/ out/ *.~* *.identcache *.local *.dsk *.stat *.tvsconfig *.dres *Resource.rc *.res |
Added .fossil-settings/ignore-glob.no-warn.
Added img/logo.png.
cannot compute difference between binary files
Deleted src/Delphi10/VCSInfo.dpk.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted src/Delphi10/VCSInfo.dproj.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Added src/Delphi10/VCSInfo_BPL.dpk.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | package VCSInfo_BPL; {$R *.res} {$IFDEF IMPLICITBUILDING This IFDEF should not be used by users} {$ALIGN 8} {$ASSERTIONS ON} {$BOOLEVAL OFF} {$DEBUGINFO OFF} {$EXTENDEDSYNTAX ON} {$IMPORTEDDATA ON} {$IOCHECKS ON} {$LOCALSYMBOLS ON} {$LONGSTRINGS ON} {$OPENSTRINGS ON} {$OPTIMIZATION OFF} {$OVERFLOWCHECKS OFF} {$RANGECHECKS OFF} {$REFERENCEINFO ON} {$SAFEDIVIDE OFF} {$STACKFRAMES ON} {$TYPEDADDRESS OFF} {$VARSTRINGCHECKS ON} {$WRITEABLECONST OFF} {$MINENUMSIZE 1} {$IMAGEBASE $400000} {$DEFINE DEBUG} {$ENDIF IMPLICITBUILDING} {$IMPLICITBUILD ON} requires rtl, designide; contains VCSInfoMenuWzrd in '..\VCSInfoMenuWzrd.pas', u_FinalPathName in '..\u_FinalPathName.pas'; end. |
Added src/Delphi10/VCSInfo_BPL.dproj.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <ProjectGuid>{E394A6F2-CCD7-4A8A-9E66-88F4D866E2FB}</ProjectGuid> <MainSource>VCSInfo_BPL.dpk</MainSource> <ProjectVersion>18.1</ProjectVersion> <FrameworkType>None</FrameworkType> <Base>True</Base> <Config Condition="'$(Config)'==''">Debug</Config> <Platform Condition="'$(Platform)'==''">Win32</Platform> <TargetedPlatforms>1</TargetedPlatforms> <AppType>Package</AppType> </PropertyGroup> <PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''"> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='Android' and '$(Base)'=='true') or '$(Base_Android)'!=''"> <Base_Android>true</Base_Android> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='iOSDevice32' and '$(Base)'=='true') or '$(Base_iOSDevice32)'!=''"> <Base_iOSDevice32>true</Base_iOSDevice32> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='iOSDevice64' and '$(Base)'=='true') or '$(Base_iOSDevice64)'!=''"> <Base_iOSDevice64>true</Base_iOSDevice64> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='iOSSimulator' and '$(Base)'=='true') or '$(Base_iOSSimulator)'!=''"> <Base_iOSSimulator>true</Base_iOSSimulator> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='OSX32' and '$(Base)'=='true') or '$(Base_OSX32)'!=''"> <Base_OSX32>true</Base_OSX32> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Base)'=='true') or '$(Base_Win32)'!=''"> <Base_Win32>true</Base_Win32> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Base)'=='true') or '$(Base_Win64)'!=''"> <Base_Win64>true</Base_Win64> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="'$(Config)'=='Debug' or '$(Cfg_1)'!=''"> <Cfg_1>true</Cfg_1> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_1)'=='true') or '$(Cfg_1_Win32)'!=''"> <Cfg_1_Win32>true</Cfg_1_Win32> <CfgParent>Cfg_1</CfgParent> <Cfg_1>true</Cfg_1> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="'$(Config)'=='Release' or '$(Cfg_2)'!=''"> <Cfg_2>true</Cfg_2> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <Import Project="..\Version.optset" Condition="'$(Base)'!='' And Exists('..\Version.optset')"/> <PropertyGroup Condition="'$(Base)'!=''"> <DCC_UNIT_PLATFORM>false</DCC_UNIT_PLATFORM> <DCC_SYMBOL_PLATFORM>false</DCC_SYMBOL_PLATFORM> <DCC_CBuilderOutput>All</DCC_CBuilderOutput> <GenPackage>true</GenPackage> <GenDll>true</GenDll> <SanitizedProjectName>VCSInfo_BPL</SanitizedProjectName> <DCC_DcuOutput>..\..\out\DCU\$(Platform)\$(Config)</DCC_DcuOutput> <DCC_ExeOutput>.\$(Platform)\$(Config)</DCC_ExeOutput> <DCC_E>false</DCC_E> <DCC_N>false</DCC_N> <DCC_S>false</DCC_S> <DCC_F>false</DCC_F> <DCC_K>false</DCC_K> <VerInfo_Locale>1033</VerInfo_Locale> <CfgDependentOn>..\Version.optset</CfgDependentOn> </PropertyGroup> <PropertyGroup Condition="'$(Base_Android)'!=''"> <EnabledSysJars>android-support-v4.dex.jar;apk-expansion.dex.jar;cloud-messaging.dex.jar;fmx.dex.jar;google-analytics-v2.dex.jar;google-play-billing.dex.jar;google-play-licensing.dex.jar;google-play-services.dex.jar</EnabledSysJars> <DCC_UsePackage>rtl;$(DCC_UsePackage)</DCC_UsePackage> <DCC_CBuilderOutput>None</DCC_CBuilderOutput> </PropertyGroup> <PropertyGroup Condition="'$(Base_iOSDevice32)'!=''"> <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> <BT_BuildType>Debug</BT_BuildType> <VerInfo_Keys>CFBundleName=$(MSBuildProjectName);CFBundleDevelopmentRegion=en;CFBundleDisplayName=$(MSBuildProjectName);CFBundleIdentifier=$(MSBuildProjectName);CFBundleInfoDictionaryVersion=7.1;CFBundleVersion=1.0.0.0;CFBundlePackageType=APPL;CFBundleSignature=????;LSRequiresIPhoneOS=true;CFBundleAllowMixedLocalizations=YES;CFBundleExecutable=$(MSBuildProjectName);UIDeviceFamily=iPhone & iPad;CFBundleResourceSpecification=ResourceRules.plist;NSLocationAlwaysUsageDescription=The reason for accessing the location information of the user;NSLocationWhenInUseUsageDescription=The reason for accessing the location information of the user;FMLocalNotificationPermission=false;UIBackgroundModes=</VerInfo_Keys> <VerInfo_BundleId>$(MSBuildProjectName)</VerInfo_BundleId> <DCC_UsePackage>rtl;$(DCC_UsePackage);$(DCC_UsePackage)</DCC_UsePackage> <Base_iOSDevice>true</Base_iOSDevice> <Base>true</Base> <CfgParent>Base</CfgParent> <VerInfo_UIDeviceFamily>iPhoneAndiPad</VerInfo_UIDeviceFamily> <DCC_CBuilderOutput>None</DCC_CBuilderOutput> </PropertyGroup> <PropertyGroup Condition="'$(Base_iOSDevice64)'!=''"> <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> <BT_BuildType>Debug</BT_BuildType> <VerInfo_Keys>CFBundleName=$(MSBuildProjectName);CFBundleDevelopmentRegion=en;CFBundleDisplayName=$(MSBuildProjectName);CFBundleIdentifier=$(MSBuildProjectName);CFBundleInfoDictionaryVersion=7.1;CFBundleVersion=1.0.0.0;CFBundlePackageType=APPL;CFBundleSignature=????;LSRequiresIPhoneOS=true;CFBundleAllowMixedLocalizations=YES;CFBundleExecutable=$(MSBuildProjectName);UIDeviceFamily=iPhone & iPad;CFBundleResourceSpecification=ResourceRules.plist;NSLocationAlwaysUsageDescription=The reason for accessing the location information of the user;NSLocationWhenInUseUsageDescription=The reason for accessing the location information of the user;FMLocalNotificationPermission=false;UIBackgroundModes=</VerInfo_Keys> <VerInfo_BundleId>$(MSBuildProjectName)</VerInfo_BundleId> <DCC_UsePackage>rtl;$(DCC_UsePackage);$(DCC_UsePackage)</DCC_UsePackage> <Base_iOSDevice>true</Base_iOSDevice> <Base>true</Base> <CfgParent>Base</CfgParent> <VerInfo_UIDeviceFamily>iPhoneAndiPad</VerInfo_UIDeviceFamily> <DCC_CBuilderOutput>None</DCC_CBuilderOutput> </PropertyGroup> <PropertyGroup Condition="'$(Base_iOSSimulator)'!=''"> <DCC_UsePackage>rtl;$(DCC_UsePackage)</DCC_UsePackage> <DCC_CBuilderOutput>None</DCC_CBuilderOutput> </PropertyGroup> <PropertyGroup Condition="'$(Base_OSX32)'!=''"> <DCC_UsePackage>rtl;$(DCC_UsePackage)</DCC_UsePackage> </PropertyGroup> <PropertyGroup Condition="'$(Base_Win32)'!=''"> <DCC_UsePackage>rtl;$(DCC_UsePackage)</DCC_UsePackage> <DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace> </PropertyGroup> <PropertyGroup Condition="'$(Base_Win64)'!=''"> <DCC_UsePackage>rtl;$(DCC_UsePackage)</DCC_UsePackage> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_1)'!=''"> <DCC_Define>DEBUG;$(DCC_Define)</DCC_Define> <DCC_DebugDCUs>true</DCC_DebugDCUs> <DCC_Optimize>false</DCC_Optimize> <DCC_GenerateStackFrames>true</DCC_GenerateStackFrames> <DCC_DebugInfoInExe>true</DCC_DebugInfoInExe> <DCC_RemoteDebug>true</DCC_RemoteDebug> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_1_Win32)'!=''"> <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> <VerInfo_Keys>CompanyName=Martijn Coppoolse;FileDescription=VCS Info;FileVersion=0.1.0.0;InternalName=VCSInfo;LegalCopyright=;LegalTrademarks=;OriginalFilename=VCSInfo.bpl;ProductName=VCS Info;ProductVersion=1.0;Comments=http://fossil.2of4.net/vcsInfo</VerInfo_Keys> <VerInfo_MajorVer>0</VerInfo_MajorVer> <VerInfo_PreRelease>true</VerInfo_PreRelease> <VerInfo_DLL>true</VerInfo_DLL> <VerInfo_MinorVer>1</VerInfo_MinorVer> <DCC_RemoteDebug>false</DCC_RemoteDebug> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_2)'!=''"> <DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols> <DCC_Define>RELEASE;$(DCC_Define)</DCC_Define> <DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo> <DCC_DebugInformation>0</DCC_DebugInformation> </PropertyGroup> <ItemGroup> <DelphiCompile Include="$(MainSource)"> <MainSource>MainSource</MainSource> </DelphiCompile> <DCCReference Include="rtl.dcp"/> <DCCReference Include="designide.dcp"/> <DCCReference Include="..\VCSInfoMenuWzrd.pas"/> <DCCReference Include="..\u_FinalPathName.pas"/> <None Include="..\..\todo.md"/> <BuildConfiguration Include="Release"> <Key>Cfg_2</Key> <CfgParent>Base</CfgParent> </BuildConfiguration> <BuildConfiguration Include="Base"> <Key>Base</Key> <DependentOn>..\Version.optset</DependentOn> </BuildConfiguration> <BuildConfiguration Include="Debug"> <Key>Cfg_1</Key> <CfgParent>Base</CfgParent> </BuildConfiguration> </ItemGroup> <ProjectExtensions> <Borland.Personality>Delphi.Personality.12</Borland.Personality> <Borland.ProjectType>Package</Borland.ProjectType> <BorlandProject> <Delphi.Personality> <Source> <Source Name="MainSource">VCSInfo_BPL.dpk</Source> </Source> <Excluded_Packages> <Excluded_Packages Name="$(BDSBIN)\dcloffice2k230.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages> <Excluded_Packages Name="$(BDSBIN)\dclofficexp230.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages> </Excluded_Packages> </Delphi.Personality> <Deployment Version="2"> <DeployFile LocalName="$(BDS)\Redist\osx32\libcgunwind.1.0.dylib" Class="DependencyModule"> <Platform Name="OSX32"> <Overwrite>true</Overwrite> </Platform> </DeployFile> <DeployFile LocalName="$(BDS)\Redist\iossimulator\libcgunwind.1.0.dylib" Class="DependencyModule"> <Platform Name="iOSSimulator"> <Overwrite>true</Overwrite> </Platform> </DeployFile> <DeployFile LocalName="$(BDS)\Redist\iossimulator\libPCRE.dylib" Class="DependencyModule"> <Platform Name="iOSSimulator"> <Overwrite>true</Overwrite> </Platform> </DeployFile> <DeployFile LocalName="C:\Users\Public\Documents\Embarcadero\Studio\17.0\Bpl\VCSInfo_BPL.bpl" Configuration="Debug" Class="ProjectOutput"> <Platform Name="Win32"> <RemoteName>VCSInfo_BPL.bpl</RemoteName> <Overwrite>true</Overwrite> </Platform> </DeployFile> <DeployClass Name="ProjectiOSDeviceResourceRules"/> <DeployClass Name="ProjectOSXResource"> <Platform Name="OSX32"> <RemoteDir>Contents\Resources</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidClassesDexFile"> <Platform Name="Android"> <RemoteDir>classes</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon144"> <Platform Name="Android"> <RemoteDir>res\drawable-xxhdpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AdditionalDebugSymbols"> <Platform Name="Win32"> <RemoteDir>Contents\MacOS</RemoteDir> <Operation>0</Operation> </Platform> <Platform Name="OSX32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidLibnativeMipsFile"> <Platform Name="Android"> <RemoteDir>library\lib\mips</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPad_Launch768"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Required="true" Name="ProjectOutput"> <Platform Name="Win32"> <Operation>0</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="OSX32"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> <Platform Name="Android"> <RemoteDir>library\lib\armeabi-v7a</RemoteDir> <Operation>1</Operation> </Platform> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="DependencyFramework"> <Platform Name="Win32"> <Operation>0</Operation> </Platform> <Platform Name="OSX32"> <Operation>1</Operation> <Extensions>.framework</Extensions> </Platform> </DeployClass> <DeployClass Name="iPhone_Launch640"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidLibnativeX86File"> <Platform Name="Android"> <RemoteDir>library\lib\x86</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSDeviceDebug"> <Platform Name="iOSDevice64"> <RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPad_Launch1024"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPhone_Launch320"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSInfoPList"/> <DeployClass Name="AndroidLibnativeArmeabiFile"> <Platform Name="Android"> <RemoteDir>library\lib\armeabi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="DebugSymbols"> <Platform Name="Win32"> <Operation>0</Operation> </Platform> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="OSX32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPad_Launch1536"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_SplashImage470"> <Platform Name="Android"> <RemoteDir>res\drawable-normal</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon96"> <Platform Name="Android"> <RemoteDir>res\drawable-xhdpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_SplashImage640"> <Platform Name="Android"> <RemoteDir>res\drawable-large</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPhone_Launch640x1136"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSEntitlements"/> <DeployClass Name="AndroidGDBServer"> <Platform Name="Android"> <RemoteDir>library\lib\armeabi-v7a</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon72"> <Platform Name="Android"> <RemoteDir>res\drawable-hdpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectOSXInfoPList"/> <DeployClass Name="ProjectOSXEntitlements"/> <DeployClass Name="iPad_Launch2048"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidSplashStyles"> <Platform Name="Android"> <RemoteDir>res\values</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_SplashImage426"> <Platform Name="Android"> <RemoteDir>res\drawable-small</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidSplashImageDef"> <Platform Name="Android"> <RemoteDir>res\drawable</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSResource"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectAndroidManifest"> <Platform Name="Android"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_DefaultAppIcon"> <Platform Name="Android"> <RemoteDir>res\drawable</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="File"> <Platform Name="Win32"> <Operation>0</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>0</Operation> </Platform> <Platform Name="OSX32"> <Operation>0</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>0</Operation> </Platform> <Platform Name="Android"> <Operation>0</Operation> </Platform> <Platform Name="iOSSimulator"> <Operation>0</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidServiceOutput"> <Platform Name="Android"> <RemoteDir>library\lib\armeabi-v7a</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Required="true" Name="DependencyPackage"> <Platform Name="Win32"> <Operation>0</Operation> <Extensions>.bpl</Extensions> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="OSX32"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="iOSSimulator"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon48"> <Platform Name="Android"> <RemoteDir>res\drawable-mdpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_SplashImage960"> <Platform Name="Android"> <RemoteDir>res\drawable-xlarge</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon36"> <Platform Name="Android"> <RemoteDir>res\drawable-ldpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="DependencyModule"> <Platform Name="Win32"> <Operation>0</Operation> <Extensions>.dll;.bpl</Extensions> </Platform> <Platform Name="OSX32"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> </DeployClass> <ProjectRoot Platform="Win64" Name="$(PROJECTNAME)"/> <ProjectRoot Platform="iOSDevice64" Name="$(PROJECTNAME).app"/> <ProjectRoot Platform="iOSDevice32" Name="$(PROJECTNAME).app"/> <ProjectRoot Platform="Win32" Name="$(PROJECTNAME)"/> <ProjectRoot Platform="OSX32" Name="$(PROJECTNAME)"/> <ProjectRoot Platform="Android" Name="$(PROJECTNAME)"/> <ProjectRoot Platform="iOSSimulator" Name="$(PROJECTNAME).app"/> </Deployment> <Platforms> <Platform value="Android">False</Platform> <Platform value="iOSDevice32">False</Platform> <Platform value="iOSDevice64">False</Platform> <Platform value="iOSSimulator">False</Platform> <Platform value="OSX32">False</Platform> <Platform value="Win32">True</Platform> <Platform value="Win64">False</Platform> </Platforms> </BorlandProject> <ProjectFileVersion>12</ProjectFileVersion> </ProjectExtensions> <Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/> <Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/> <Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/> </Project> |
Added src/Delphi10/VCSInfo_XSeattle.dpr.
> > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | library VCSInfo_XSeattle; { Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-View Source) USES clause if your DLL exports any procedures or functions that pass strings as parameters or function results. This applies to all strings passed to and from your DLL--even those that are nested in records and classes. ShareMem is the interface unit to the BORLNDMM.DLL shared memory manager, which must be deployed along with your DLL. To avoid using BORLNDMM.DLL, pass string information using PChar or ShortString parameters. } {$R *.dres} uses System.SysUtils, System.Classes, vcsinfo.InfoWzrd in '..\vcsinfo.InfoWzrd.pas', vcsinfo.VCSClient in '..\vcsinfo.VCSClient.pas', vcsinfo.Fossil in '..\vcsinfo.Fossil.pas'; {$R *.res} begin end. |
Added src/Delphi10/VCSInfo_XSeattle.dproj.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <ProjectGuid>{8615D8A1-1FF0-4BB0-A048-52AE5019C5DF}</ProjectGuid> <ProjectVersion>18.1</ProjectVersion> <FrameworkType>None</FrameworkType> <MainSource>VCSInfo_XSeattle.dpr</MainSource> <Base>True</Base> <Config Condition="'$(Config)'==''">Debug</Config> <Platform Condition="'$(Platform)'==''">Win32</Platform> <TargetedPlatforms>1</TargetedPlatforms> <AppType>Library</AppType> </PropertyGroup> <PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''"> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='OSX32' and '$(Base)'=='true') or '$(Base_OSX32)'!=''"> <Base_OSX32>true</Base_OSX32> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Base)'=='true') or '$(Base_Win32)'!=''"> <Base_Win32>true</Base_Win32> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Base)'=='true') or '$(Base_Win64)'!=''"> <Base_Win64>true</Base_Win64> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="'$(Config)'=='Debug' or '$(Cfg_1)'!=''"> <Cfg_1>true</Cfg_1> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_1)'=='true') or '$(Cfg_1_Win32)'!=''"> <Cfg_1_Win32>true</Cfg_1_Win32> <CfgParent>Cfg_1</CfgParent> <Cfg_1>true</Cfg_1> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="'$(Config)'=='Release' or '$(Cfg_2)'!=''"> <Cfg_2>true</Cfg_2> <CfgParent>Base</CfgParent> <Base>true</Base> </PropertyGroup> <PropertyGroup Condition="'$(Base)'!=''"> <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;$(DCC_Namespace)</DCC_Namespace> <GenDll>true</GenDll> <SanitizedProjectName>VCSInfo_XSeattle</SanitizedProjectName> <DCC_UnitSearchPath>..;$(DCC_UnitSearchPath)</DCC_UnitSearchPath> <VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys> <VerInfo_Locale>1043</VerInfo_Locale> <DCC_DcuOutput>..\..\out\DCU\$(Platform)\$(Config)</DCC_DcuOutput> <DCC_ExeOutput>..\..\out\$(Platform)\$(Config)</DCC_ExeOutput> <DCC_E>false</DCC_E> <DCC_N>false</DCC_N> <DCC_S>false</DCC_S> <DCC_F>false</DCC_F> <DCC_K>false</DCC_K> </PropertyGroup> <PropertyGroup Condition="'$(Base_OSX32)'!=''"> <DCC_UsePackage>DBXSqliteDriver;bindcompdbx;IndyIPCommon;RESTComponents;DBXInterBaseDriver;IndyIPServer;IndySystem;tethering;fmxFireDAC;FireDAC;bindcompfmx;FireDACSqliteDriver;FireDACPgDriver;FireDACASADriver;inetdb;FMXTee;soaprtl;DbxCommonDriver;FmxTeeUI;FireDACIBDriver;fmx;fmxdae;xmlrtl;soapmidas;fmxobj;rtl;DbxClientDriver;CustomIPTransport;dbexpress;IndyCore;bindcomp;dsnap;FireDACCommon;IndyIPClient;RESTBackendComponents;dbxcds;soapserver;FireDACODBCDriver;bindengine;DBXMySQLDriver;CloudService;dsnapxml;FireDACMySQLDriver;dbrtl;inetdbxpress;IndyProtocols;FireDACCommonDriver;inet;fmxase;$(DCC_UsePackage)</DCC_UsePackage> </PropertyGroup> <PropertyGroup Condition="'$(Base_Win32)'!=''"> <DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace> <VerInfo_Locale>1033</VerInfo_Locale> <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> <VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys> <DCC_UsePackage>DBXSqliteDriver;bindcompdbx;IndyIPCommon;RESTComponents;DBXInterBaseDriver;vcl;IndyIPServer;vclactnband;frxe23;vclFireDAC;IndySystem;tethering;svnui;dsnapcon;FireDACADSDriver;FireDACMSAccDriver;fmxFireDAC;vclimg;TeeDB;FireDAC;vcltouch;vcldb;bindcompfmx;svn;Intraweb;FireDACSqliteDriver;FireDACPgDriver;FireDACASADriver;inetdb;FMXTee;soaprtl;DbxCommonDriver;FmxTeeUI;OmniThreadLibraryRuntimeXE8;AbbreviaVCLD;FireDACIBDriver;fmx;fmxdae;xmlrtl;soapmidas;Tee;fmxobj;vclwinx;rtl;DbxClientDriver;CustomIPTransport;vcldsnap;dbexpress;IndyCore;vclx;bindcomp;appanalytics;dsnap;AggPasRun;FireDACCommon;IndyIPClient;bindcompvcl;frxDB23;RESTBackendComponents;TeeUI;VCLRESTComponents;vclribbon;dbxcds;VclSmp;soapserver;adortl;FireDACODBCDriver;frxTee23;VCSInfo;vclie;bindengine;DBXMySQLDriver;CloudService;dsnapxml;FireDACMySQLDriver;dbrtl;inetdbxpress;IndyProtocols;frx23;FireDACCommonDriver;inet;fmxase;$(DCC_UsePackage)</DCC_UsePackage> </PropertyGroup> <PropertyGroup Condition="'$(Base_Win64)'!=''"> <DCC_UsePackage>DBXSqliteDriver;bindcompdbx;IndyIPCommon;RESTComponents;DBXInterBaseDriver;vcl;IndyIPServer;vclactnband;vclFireDAC;IndySystem;tethering;dsnapcon;FireDACADSDriver;FireDACMSAccDriver;fmxFireDAC;vclimg;TeeDB;FireDAC;vcltouch;vcldb;bindcompfmx;Intraweb;FireDACSqliteDriver;FireDACPgDriver;FireDACASADriver;inetdb;FMXTee;soaprtl;DbxCommonDriver;FmxTeeUI;AbbreviaVCLD;FireDACIBDriver;fmx;fmxdae;xmlrtl;soapmidas;Tee;fmxobj;vclwinx;rtl;DbxClientDriver;CustomIPTransport;vcldsnap;dbexpress;IndyCore;vclx;bindcomp;appanalytics;dsnap;FireDACCommon;IndyIPClient;bindcompvcl;RESTBackendComponents;TeeUI;VCLRESTComponents;vclribbon;dbxcds;VclSmp;soapserver;adortl;FireDACODBCDriver;vclie;bindengine;DBXMySQLDriver;CloudService;dsnapxml;FireDACMySQLDriver;dbrtl;inetdbxpress;IndyProtocols;FireDACCommonDriver;inet;fmxase;$(DCC_UsePackage)</DCC_UsePackage> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_1)'!=''"> <DCC_Define>DEBUG;$(DCC_Define)</DCC_Define> <DCC_DebugDCUs>true</DCC_DebugDCUs> <DCC_Optimize>false</DCC_Optimize> <DCC_GenerateStackFrames>true</DCC_GenerateStackFrames> <DCC_DebugInfoInExe>true</DCC_DebugInfoInExe> <DCC_RemoteDebug>true</DCC_RemoteDebug> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_1_Win32)'!=''"> <Debugger_HostApplication>D:\ProgFiles\Embarcadero\RAD Studio\17.0\bin\bds.exe</Debugger_HostApplication> <UsePackages>true</UsePackages> <DCC_UsePackage>rtl;vcl;designide</DCC_UsePackage> <Debugger_RunParams>-pDelphi</Debugger_RunParams> <Manifest_File>None</Manifest_File> <VerInfo_Locale>1033</VerInfo_Locale> <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> <DCC_RemoteDebug>false</DCC_RemoteDebug> </PropertyGroup> <PropertyGroup Condition="'$(Cfg_2)'!=''"> <DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols> <DCC_Define>RELEASE;$(DCC_Define)</DCC_Define> <DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo> <DCC_DebugInformation>0</DCC_DebugInformation> </PropertyGroup> <ItemGroup> <DelphiCompile Include="$(MainSource)"> <MainSource>MainSource</MainSource> </DelphiCompile> <DCCReference Include="..\vcsinfo.InfoWzrd.pas"/> <DCCReference Include="..\vcsinfo.VCSClient.pas"/> <DCCReference Include="..\vcsinfo.Fossil.pas"/> <RcItem Include="..\Res\logo.bmp"> <ResourceType>BITMAP</ResourceType> <ResourceId>BMP_LOGO</ResourceId> </RcItem> <None Include="..\..\todo.md"/> <BuildConfiguration Include="Release"> <Key>Cfg_2</Key> <CfgParent>Base</CfgParent> </BuildConfiguration> <BuildConfiguration Include="Base"> <Key>Base</Key> </BuildConfiguration> <BuildConfiguration Include="Debug"> <Key>Cfg_1</Key> <CfgParent>Base</CfgParent> </BuildConfiguration> </ItemGroup> <ProjectExtensions> <Borland.Personality>Delphi.Personality.12</Borland.Personality> <Borland.ProjectType>Application</Borland.ProjectType> <BorlandProject> <Delphi.Personality> <Source> <Source Name="MainSource">VCSInfo_XSeattle.dpr</Source> </Source> <Excluded_Packages> <Excluded_Packages Name="$(BDSBIN)\dcloffice2k230.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages> <Excluded_Packages Name="$(BDSBIN)\dclofficexp230.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages> </Excluded_Packages> </Delphi.Personality> <Deployment Version="2"> <DeployFile LocalName="$(BDS)\Redist\osx32\libcgunwind.1.0.dylib" Class="DependencyModule"> <Platform Name="OSX32"> <Overwrite>true</Overwrite> </Platform> </DeployFile> <DeployFile LocalName="$(BDS)\Redist\iossimulator\libcgunwind.1.0.dylib" Class="DependencyModule"> <Platform Name="iOSSimulator"> <Overwrite>true</Overwrite> </Platform> </DeployFile> <DeployFile LocalName="$(BDS)\Redist\iossimulator\libPCRE.dylib" Class="DependencyModule"> <Platform Name="iOSSimulator"> <Overwrite>true</Overwrite> </Platform> </DeployFile> <DeployFile LocalName="..\..\out\Win32\Debug\VCSInfo_XSeattle.dll" Configuration="Debug" Class="ProjectOutput"> <Platform Name="Win32"> <RemoteName>VCSInfo_XSeattle.dll</RemoteName> <Overwrite>true</Overwrite> </Platform> </DeployFile> <DeployClass Name="DependencyModule"> <Platform Name="Win32"> <Operation>0</Operation> <Extensions>.dll;.bpl</Extensions> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="OSX32"> <RemoteDir>Contents\MacOS</RemoteDir> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="iOSSimulator"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> </DeployClass> <DeployClass Name="ProjectOSXResource"> <Platform Name="OSX32"> <RemoteDir>Contents\Resources</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidClassesDexFile"> <Platform Name="Android"> <RemoteDir>classes</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AdditionalDebugSymbols"> <Platform Name="Win32"> <RemoteDir>Contents\MacOS</RemoteDir> <Operation>0</Operation> </Platform> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="OSX32"> <RemoteDir>Contents\MacOS</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPad_Launch768"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon144"> <Platform Name="Android"> <RemoteDir>res\drawable-xxhdpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidLibnativeMipsFile"> <Platform Name="Android"> <RemoteDir>library\lib\mips</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Required="true" Name="ProjectOutput"> <Platform Name="Win32"> <Operation>0</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="OSX32"> <RemoteDir>Contents\MacOS</RemoteDir> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> <Platform Name="Android"> <RemoteDir>library\lib\armeabi-v7a</RemoteDir> <Operation>1</Operation> </Platform> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="DependencyFramework"> <Platform Name="Win32"> <Operation>0</Operation> </Platform> <Platform Name="OSX32"> <RemoteDir>Contents\MacOS</RemoteDir> <Operation>1</Operation> <Extensions>.framework</Extensions> </Platform> </DeployClass> <DeployClass Name="iPhone_Launch640"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPad_Launch1024"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSDeviceDebug"> <Platform Name="iOSDevice64"> <RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidLibnativeX86File"> <Platform Name="Android"> <RemoteDir>library\lib\x86</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPhone_Launch320"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSInfoPList"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidLibnativeArmeabiFile"> <Platform Name="Android"> <RemoteDir>library\lib\armeabi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="DebugSymbols"> <Platform Name="Win32"> <Operation>0</Operation> </Platform> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="OSX32"> <RemoteDir>Contents\MacOS</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPad_Launch1536"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_SplashImage470"> <Platform Name="Android"> <RemoteDir>res\drawable-normal</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon96"> <Platform Name="Android"> <RemoteDir>res\drawable-xhdpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_SplashImage640"> <Platform Name="Android"> <RemoteDir>res\drawable-large</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPhone_Launch640x1136"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSEntitlements"> <Platform Name="iOSDevice64"> <RemoteDir>../</RemoteDir> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <RemoteDir>../</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon72"> <Platform Name="Android"> <RemoteDir>res\drawable-hdpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidGDBServer"> <Platform Name="Android"> <RemoteDir>library\lib\armeabi-v7a</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectOSXInfoPList"> <Platform Name="OSX32"> <RemoteDir>Contents</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectOSXEntitlements"> <Platform Name="OSX32"> <RemoteDir>../</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="iPad_Launch2048"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidSplashStyles"> <Platform Name="Android"> <RemoteDir>res\values</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_SplashImage426"> <Platform Name="Android"> <RemoteDir>res\drawable-small</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidSplashImageDef"> <Platform Name="Android"> <RemoteDir>res\drawable</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSResource"> <Platform Name="iOSSimulator"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectAndroidManifest"> <Platform Name="Android"> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_DefaultAppIcon"> <Platform Name="Android"> <RemoteDir>res\drawable</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="File"> <Platform Name="Win32"> <Operation>0</Operation> </Platform> <Platform Name="iOSDevice64"> <Operation>0</Operation> </Platform> <Platform Name="OSX32"> <RemoteDir>Contents\Resources\StartUp\</RemoteDir> <Operation>0</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>0</Operation> </Platform> <Platform Name="Android"> <Operation>0</Operation> </Platform> <Platform Name="iOSSimulator"> <Operation>0</Operation> </Platform> </DeployClass> <DeployClass Name="AndroidServiceOutput"> <Platform Name="Android"> <RemoteDir>library\lib\armeabi-v7a</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Required="true" Name="DependencyPackage"> <Platform Name="Win32"> <Operation>0</Operation> <Extensions>.bpl</Extensions> </Platform> <Platform Name="iOSDevice64"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="OSX32"> <RemoteDir>Contents\MacOS</RemoteDir> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> <Platform Name="iOSSimulator"> <Operation>1</Operation> <Extensions>.dylib</Extensions> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon48"> <Platform Name="Android"> <RemoteDir>res\drawable-mdpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_SplashImage960"> <Platform Name="Android"> <RemoteDir>res\drawable-xlarge</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="Android_LauncherIcon36"> <Platform Name="Android"> <RemoteDir>res\drawable-ldpi</RemoteDir> <Operation>1</Operation> </Platform> </DeployClass> <DeployClass Name="ProjectiOSDeviceResourceRules"> <Platform Name="iOSDevice64"> <Operation>1</Operation> </Platform> <Platform Name="iOSDevice32"> <Operation>1</Operation> </Platform> </DeployClass> <ProjectRoot Platform="iOSDevice64" Name="$(PROJECTNAME).app"/> <ProjectRoot Platform="Win64" Name="$(PROJECTNAME)"/> <ProjectRoot Platform="iOSDevice32" Name="$(PROJECTNAME).app"/> <ProjectRoot Platform="Win32" Name="$(PROJECTNAME)"/> <ProjectRoot Platform="OSX32" Name="$(PROJECTNAME).app"/> <ProjectRoot Platform="Android" Name="$(PROJECTNAME)"/> <ProjectRoot Platform="iOSSimulator" Name="$(PROJECTNAME).app"/> </Deployment> <Platforms> <Platform value="OSX32">False</Platform> <Platform value="Win32">True</Platform> <Platform value="Win64">False</Platform> </Platforms> </BorlandProject> <ProjectFileVersion>12</ProjectFileVersion> </ProjectExtensions> <Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/> <Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/> <Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/> </Project> |
Added src/Delphi10/VCSInfo_dev.groupproj.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <ProjectGuid>{520AFAE8-DD39-4069-8DB8-F803A041CC1B}</ProjectGuid> </PropertyGroup> <ItemGroup> <Projects Include="VCSInfo_BPL.dproj"> <Dependencies/> </Projects> <Projects Include="VCSInfo_XSeattle.dproj"> <Dependencies/> </Projects> </ItemGroup> <ProjectExtensions> <Borland.Personality>Default.Personality.12</Borland.Personality> <Borland.ProjectType/> <BorlandProject> <Default.Personality/> </BorlandProject> </ProjectExtensions> <Target Name="VCSInfo_BPL"> <MSBuild Projects="VCSInfo_BPL.dproj"/> </Target> <Target Name="VCSInfo_BPL:Clean"> <MSBuild Projects="VCSInfo_BPL.dproj" Targets="Clean"/> </Target> <Target Name="VCSInfo_BPL:Make"> <MSBuild Projects="VCSInfo_BPL.dproj" Targets="Make"/> </Target> <Target Name="VCSInfo_XSeattle"> <MSBuild Projects="VCSInfo_XSeattle.dproj"/> </Target> <Target Name="VCSInfo_XSeattle:Clean"> <MSBuild Projects="VCSInfo_XSeattle.dproj" Targets="Clean"/> </Target> <Target Name="VCSInfo_XSeattle:Make"> <MSBuild Projects="VCSInfo_XSeattle.dproj" Targets="Make"/> </Target> <Target Name="Build"> <CallTarget Targets="VCSInfo_BPL;VCSInfo_XSeattle"/> </Target> <Target Name="Clean"> <CallTarget Targets="VCSInfo_BPL:Clean;VCSInfo_XSeattle:Clean"/> </Target> <Target Name="Make"> <CallTarget Targets="VCSInfo_BPL:Make;VCSInfo_XSeattle:Make"/> </Target> <Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/> </Project> |
Added src/Res/logo.bmp.
cannot compute difference between binary files
Changes to src/VCSInfoMenuWzrd.pas.
︙ | ︙ | |||
16 17 18 19 20 21 22 | Incoming: Integer; Outgoing: Integer; LastUpdated: TDateTime; function IsRepo: Boolean; end; // TODO: implement IOTAEditorNotifier and/or IOTAIDENotifier so we know which file is active | | | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | Incoming: Integer; Outgoing: Integer; LastUpdated: TDateTime; function IsRepo: Boolean; end; // TODO: implement IOTAEditorNotifier and/or IOTAIDENotifier so we know which file is active TVCSInfoMenuWizard = class(TNotifierObject, IOTAWizard, IOTAMenuWizard) private FRepos: TDictionary<string,TRepoInfo>; FToolbar: TToolBar; FPluginAbout: Integer; FButtonSync: TToolButton; |
︙ | ︙ | |||
94 95 96 97 98 99 100 | const scMenuIDString = 'net.2of4.VCSInfoWizard'; cLimit = 9; { ------------------------------------------------------------------------------------------------ } procedure Register; begin | | | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | const scMenuIDString = 'net.2of4.VCSInfoWizard'; cLimit = 9; { ------------------------------------------------------------------------------------------------ } procedure Register; begin RegisterPackageWizard(TVCSInfoMenuWizard.Create); (* TODO: create multiple separate menu wizards: - pull (incoming) / push (outgoing) *) end; {$REGION 'Functions to execute command-line and capture output'} |
︙ | ︙ | |||
415 416 417 418 419 420 421 | end; end; { ================================================================================================ } { TVCSInfoWizard } { ------------------------------------------------------------------------------------------------ } | | | 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | end; end; { ================================================================================================ } { TVCSInfoWizard } { ------------------------------------------------------------------------------------------------ } constructor TVCSInfoMenuWizard.Create; var Services: INTAServices; AboutBox: IOTAAboutBoxServices; { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - } function AddButtonImage(const Color: TColor; const TransparentColor: TColor = clFuchsia): Integer; var bmp: TBitmap; |
︙ | ︙ | |||
620 621 622 623 624 625 626 | AboutBox := ToolsAPI.BorlandIDEServices as IOTAAboutBoxServices; FPluginAbout := AboutBox.AddPluginInfo(GetCurrentVersion, GetCurrentVersion + sLineBreak + sLineBreak + '© Martijn Coppoolse - http://fossil.2of4.net/vcsInfo', 0); end {TVCSInfoWizard.Create}; { ------------------------------------------------------------------------------------------------ } | | | 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 | AboutBox := ToolsAPI.BorlandIDEServices as IOTAAboutBoxServices; FPluginAbout := AboutBox.AddPluginInfo(GetCurrentVersion, GetCurrentVersion + sLineBreak + sLineBreak + '© Martijn Coppoolse - http://fossil.2of4.net/vcsInfo', 0); end {TVCSInfoWizard.Create}; { ------------------------------------------------------------------------------------------------ } destructor TVCSInfoMenuWizard.Destroy; var Services: INTAServices; Button: TToolButton; i: Integer; AboutBox: IOTAAboutBoxServices; begin try |
︙ | ︙ | |||
645 646 647 648 649 650 651 | FToolbar.Free; FRepos.Free; finally inherited; end; end {TVCSInfoWizard.Destroy}; | | | 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 | FToolbar.Free; FRepos.Free; finally inherited; end; end {TVCSInfoWizard.Destroy}; procedure TVCSInfoMenuWizard.actBranchUpdate(Sender: TObject); var actBranch: TAction; Repo: TRepoInfo; NewHint, NewCaption: string; NewEnabled: boolean; begin try |
︙ | ︙ | |||
688 689 690 691 692 693 694 | except on E: Exception do begin LogMessage('actBranchUpdate raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end; | | | | 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 | except on E: Exception do begin LogMessage('actBranchUpdate raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end; procedure TVCSInfoMenuWizard.actInfoExecute(Sender: TObject); begin // nothing; just drop down the menu end; procedure TVCSInfoMenuWizard.actInfoMenuPopup(Sender: TObject); var Menu: TPopupMenu; Item: TMenuItem; Button: TToolButton; Output: string; begin try |
︙ | ︙ | |||
733 734 735 736 737 738 739 | except on E: Exception do begin LogMessage('actInfoMenuPopUp raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end {TVCSInfoWizard.actInfoMenuPopup}; | | | 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 | except on E: Exception do begin LogMessage('actInfoMenuPopUp raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end {TVCSInfoWizard.actInfoMenuPopup}; procedure TVCSInfoMenuWizard.actInfoUpdate(Sender: TObject); var actInfo: TAction; Repo: TRepoInfo; NewImageIndex: integer; NewCaption: string; begin try |
︙ | ︙ | |||
770 771 772 773 774 775 776 | except on E: Exception do begin LogMessage('actInfoUpdate raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end; | | | | | | 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 | except on E: Exception do begin LogMessage('actInfoUpdate raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end; procedure TVCSInfoMenuWizard.actInfoMenuVCSClick(Sender: TObject); var Dir: string; begin Dir := ExtractFileDir(GetActiveFileName); case (((Sender as TMenuItem).Owner as TComponent).Owner as TToolButton).Action.Tag of 0: begin // hg CreateProcess('cmd.exe /k hg', Dir, True); end; 1: begin // fossil CreateProcess('cmd.exe /k fossil', Dir, True); end; end; end; procedure TVCSInfoMenuWizard.actBranchExecute(Sender: TObject); var P: TPoint; begin with FButtonBranch.BoundsRect do P := FButtonBranch.Parent.ClientToScreen(Point(Left, Bottom)); FMenuBranches.Popup(P.X, P.Y); end; procedure TVCSInfoMenuWizard.actBranchMenuClick(Sender: TObject); var BranchName: string; begin BranchName := (Sender as TMenuItem).Caption; SwitchToRevision(BranchName); end {TVCSInfoWizard.actBranchMenuClick}; procedure TVCSInfoMenuWizard.actBranchMenuPopup(Sender: TObject); var Menu: TPopupMenu; Repo: TRepoInfo; Branches: TStringList; Branch: string; mi: TMenuItem; iRes: Cardinal; |
︙ | ︙ | |||
857 858 859 860 861 862 863 | end; finally Branches.Free; end; end; end {TVCSInfoWizard.actBranchMenuPopup}; | | | 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 | end; finally Branches.Free; end; end; end {TVCSInfoWizard.actBranchMenuPopup}; procedure TVCSInfoMenuWizard.actStatusExecute(Sender: TObject); var Repo: TRepoInfo; begin Repo := GetActiveFileRepo; case IndexStr(Repo.RepoType, ['hg', 'fossil']) of 0: begin // hg if Repo.Pending > 0 then begin |
︙ | ︙ | |||
884 885 886 887 888 889 890 | if not CreateProcess('fossil ui', Repo.Root) then RaiseLastOSError; end; end; end; end; | | | 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 | if not CreateProcess('fossil ui', Repo.Root) then RaiseLastOSError; end; end; end; end; procedure TVCSInfoMenuWizard.actStatusUpdate(Sender: TObject); var actStatus: TAction; Repo: TRepoInfo; NewImageIndex: Integer; NewHint: string; NewEnabled: boolean; begin |
︙ | ︙ | |||
936 937 938 939 940 941 942 | except on E: Exception do begin LogMessage('actStatusUpdate raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end; | | | 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 | except on E: Exception do begin LogMessage('actStatusUpdate raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end; procedure TVCSInfoMenuWizard.actSyncExecute(Sender: TObject); var Repo: TRepoInfo; iRes: Cardinal; Output: string; MsgType: TMsgDlgType; begin Repo := GetActiveFileRepo; |
︙ | ︙ | |||
964 965 966 967 968 969 970 | Screen.Cursor := crDefault; end; TaskMessageDlg(Repo.Root, Output, MsgType, [mbOK], 0); end; end; end; | | | | 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 | Screen.Cursor := crDefault; end; TaskMessageDlg(Repo.Root, Output, MsgType, [mbOK], 0); end; end; end; procedure TVCSInfoMenuWizard.actSyncUpdate(Sender: TObject); var actSync: TAction; begin try actSync := Sender as TAction; RefreshSyncStatus(actSync); except on E: Exception do begin LogMessage('actSyncUpdate raised ' + E.ClassName + sLineBreak + E.ToString); end; end; end {TVCSInfoWizard.actSyncUpdate}; procedure TVCSInfoMenuWizard.RefreshSyncStatus(const actSync: TAction); var NewImageIndex: Integer; Repo: TRepoInfo; NewEnabled: Boolean; NewCaption: string; begin Repo := GetActiveFileRepo; |
︙ | ︙ | |||
1058 1059 1060 1061 1062 1063 1064 | FToolbar.Invalidate; LogMessage('actSyncUpdate: IsRepo=%d, In=%d, Out=%d; Caption="%s", Img=%d', [Ord(Repo.IsRepo), Repo.Incoming, Repo.Outgoing, NewCaption, NewImageIndex]); end; end; | | | 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 | FToolbar.Invalidate; LogMessage('actSyncUpdate: IsRepo=%d, In=%d, Out=%d; Caption="%s", Img=%d', [Ord(Repo.IsRepo), Repo.Incoming, Repo.Outgoing, NewCaption, NewImageIndex]); end; end; procedure TVCSInfoMenuWizard.SwitchToRevision(const Revision: string); var i: Integer; iRes: Cardinal; Repo: TRepoInfo; Output: string; MsgType: TMsgDlgType; Modules: IOTAModuleServices; |
︙ | ︙ | |||
1108 1109 1110 1111 1112 1113 1114 | // TODO: if we closed the project, reopen it end; end {TVCSInfoWizard.SwitchToBranch}; { ------------------------------------------------------------------------------------------------ } | | | 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 | // TODO: if we closed the project, reopen it end; end {TVCSInfoWizard.SwitchToBranch}; { ------------------------------------------------------------------------------------------------ } function TVCSInfoMenuWizard.GetMenuText: string; var Project: IOTAProject; Repo: TRepoInfo; begin Project := ToolsAPI.GetActiveProject; if Assigned(Project) then begin Repo := GetRepoInfo(Project.FileName); |
︙ | ︙ | |||
1145 1146 1147 1148 1149 1150 1151 | end; end else begin Result := Application.Title; end; end {TVCSInfoWizard.GetMenuText}; { ------------------------------------------------------------------------------------------------ } | | | | | 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 | end; end else begin Result := Application.Title; end; end {TVCSInfoWizard.GetMenuText}; { ------------------------------------------------------------------------------------------------ } function TVCSInfoMenuWizard.GetState: TWizardState; var Repo: TRepoInfo; begin Result := []; Repo := GetActiveFileRepo; // wsEnabled if the current module is located inside a working directory if Repo.IsRepo then begin Include(Result, wsEnabled); // wsChecked if the current module has incoming or outgoing changes if (Repo.Incoming + Repo.Outgoing > 0) then begin Include(Result, wsChecked); end; end; end {TVCSInfoWizard.GetState}; procedure TVCSInfoMenuWizard.LogMessage(const Text: string; const Args: array of const); begin LogMessage(Format(Text, Args)); end; procedure TVCSInfoMenuWizard.LogMessage(const Text: string); const RFC3339: TFormatSettings = (DateSeparator: '-'; TimeSeparator: ':'; ShortDateFormat: 'yyyy-MM-dd'; LongDateFormat: 'yyyy-MM-dd'; ShortTimeFormat: 'hh:nn:ss'; LongTimeFormat: 'hh:nn:ss.zzz'); var Messages: IOTAMessageServices; Group: IOTAMessageGroup; |
︙ | ︙ | |||
1192 1193 1194 1195 1196 1197 1198 | Messages.AddTitleMessage(TimeStamp + #9 + Line, Group); if TimeStamp[1] <> #9 then TimeStamp := StringOfChar(#9, 2); end; end {TVCSInfoWizard.LogMessage}; { ------------------------------------------------------------------------------------------------ } | | | 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 | Messages.AddTitleMessage(TimeStamp + #9 + Line, Group); if TimeStamp[1] <> #9 then TimeStamp := StringOfChar(#9, 2); end; end {TVCSInfoWizard.LogMessage}; { ------------------------------------------------------------------------------------------------ } procedure TVCSInfoMenuWizard.Execute; var Project: IOTAProject; CodeFile: string; Info: TRepoInfo; Msg: string; begin Project := ToolsAPI.GetActiveProject; |
︙ | ︙ | |||
1233 1234 1235 1236 1237 1238 1239 | end; end else begin TaskMessageDlg('No project loaded', '', mtError, [mbOK], 0); end; end {TVCSInfoWizard.Execute}; { ------------------------------------------------------------------------------------------------ } | | | | | 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 | end; end else begin TaskMessageDlg('No project loaded', '', mtError, [mbOK], 0); end; end {TVCSInfoWizard.Execute}; { ------------------------------------------------------------------------------------------------ } function TVCSInfoMenuWizard.GetIDString: string; begin Result := scMenuIDString; end; { ------------------------------------------------------------------------------------------------ } function TVCSInfoMenuWizard.GetName: string; begin Result := scMenuIDString; end; function TVCSInfoMenuWizard.GetActiveFileName: string; var Modules: IOTAModuleServices; Module: IOTAModule; Editor: IOTAEditor; Project: IOTAProject; begin Result := ''; |
︙ | ︙ | |||
1268 1269 1270 1271 1272 1273 1274 | if Result = '' then begin Project := ToolsAPI.GetActiveProject; if Assigned(Project) then Result := Project.FileName; end; end {GetActiveFileName}; | | | | | 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 | if Result = '' then begin Project := ToolsAPI.GetActiveProject; if Assigned(Project) then Result := Project.FileName; end; end {GetActiveFileName}; function TVCSInfoMenuWizard.GetActiveFileRepo(const AForceUpdate: Boolean): TRepoInfo; var FileName: string; begin Result := GetActiveFileRepo(AForceUpdate, FileName); end; function TVCSInfoMenuWizard.GetActiveFileRepo(const AForceUpdate: Boolean; out AFileName: string): TRepoInfo; begin AFileName := GetActiveFileName; if FileExists(AFileName) then begin Result := GetRepoInfo(AFileName, AForceUpdate); end else begin Result := Default(TRepoInfo); end; end {TVCSInfoWizard.GetActiveFileRepo}; function TVCSInfoMenuWizard.GetRepoInfo(const AFileName: string; const AForceUpdate: Boolean): TRepoInfo; const cRefreshSeconds = 10; var FilePath, FinalFilePath, RootPath, FinalRootPath: string; Lines: TStringList; Line: string; iRes: Cardinal; |
︙ | ︙ |
Added src/vcsinfo.Fossil.pas.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | unit vcsinfo.Fossil; interface uses vcsinfo.VCSClient; type TVCSFossil = class(TVCSClient) public class function IsRepo(const APath: string; out ARootPath: string): boolean; override; strict protected function GetExecutable: string; override; function GetUIExecutable: string; override; function GetTitle: string; override; public constructor Create(const APath: string); destructor Destroy; override; function GetBranches: TArray<string>; override; function GetIncoming: integer; override; function GetOutgoing: integer; override; function CountPendingFiles: integer; override; function CountUntrackedFiles: Integer; override; function GetStatus: TArray<string>; override; procedure ShowRepositoryUI; override; procedure ShowRemoteStatusUI; override; procedure ShowLocalStatusUI; override; function SwitchToBranchUI(const BranchName: string): boolean; override; procedure ProcessRename(const OldName, NewName: string); override; end; implementation uses System.Classes, System.SysUtils, Vcl.Forms, Vcl.Controls, Vcl.Dialogs; { TVCSFossil } constructor TVCSFossil.Create(const APath: string); begin inherited; end; destructor TVCSFossil.Destroy; begin inherited; end; function TVCSFossil.GetBranches: TArray<string>; var Lines: TStringList; RetVal: Cardinal; i: Integer; begin Lines := TStringList.Create; try RetVal := ExecuteCmd('fossil branch list', Lines.Append); if RetVal <> 0 then raise EVCSException.Create(Lines.Text.Trim); for i := 0 to Lines.Count - 1 do begin // put the current one first if (i > 0) and Lines[i].StartsWith('*') then begin Lines.Insert(0, Lines[i].Substring(2)); Lines.Delete(i); end else begin Lines[i] := Lines[i].Substring(2); end; end; Result := Lines.ToStringArray; finally Lines.Free; end; end; function TVCSFossil.GetExecutable: string; begin Result := 'fossil.exe'; end; function TVCSFossil.GetIncoming: integer; var Line: string; iRes: Cardinal; begin // if remote-url is off, then 0; otherwise -1 Result := -1; Line := ''; iRes := ExecuteCmd('fossil remote-url', Line); if (iRes = 0) and (Line <> 'off') then begin Result := 0; end; end {TVCSFossil.GetIncoming}; function TVCSFossil.GetOutgoing: integer; var Line: string; iRes: Cardinal; begin // if remote-url is off and autosync is on, then 0; otherwise -1 Result := -1; Line := ''; iRes := ExecuteCmd('fossil settings autosync', Line); if (iRes = 0) and (Line <> '') and TryStrToInt(Line.Substring(28).Trim, Integer(iRes)) then begin if (iRes > 0) then begin // autosync is enabled; check for a remote-url Line := ''; iRes := ExecuteCmd('fossil remote-url', Line); if (iRes = 0) and (Line <> 'off') then begin Result := 0; end; end; end; end {TVCSFossil.GetOutgoing}; function TVCSFossil.CountPendingFiles: integer; var Lines: TStringList; begin Result := 0; Lines := TStringList.Create; try if 0 = ExecuteCmd('fossil changes', Lines.Append) then Result := Lines.Count else raise EVCSException.Create(Lines.Text.Trim); finally Lines.Free; end; end; function TVCSFossil.GetStatus: TArray<string>; var Lines: TStringList; begin Lines := TStringList.Create; try if 0 = ExecuteCmd('fossil status', Lines.Append) then Result := Lines.ToStringArray else raise EVCSException.Create(Lines.Text.Trim); finally Lines.Free; end; end; function TVCSFossil.GetTitle: string; begin if 0 <> ExecuteCmd('fossil sqlite3 "SELECT value FROM config WHERE name=''project-name''"', Result) then raise EVCSException.Create(Result); end; function TVCSFossil.GetUIExecutable: string; begin Result := ''; end; function TVCSFossil.CountUntrackedFiles: Integer; var Lines: TStringList; begin Result := 0; Lines := TStringList.Create; try if 0 = ExecuteCmd('fossil extras', Lines.Append) then Result := Lines.Count else raise EVCSException.Create(Lines.Text); finally Lines.Free; end; end; procedure TVCSFossil.ShowRemoteStatusUI; var Output: string; RetVal: Cardinal; MsgType: TMsgDlgType; begin Screen.Cursor := crHourGlass; try RetVal := ExecuteCmd('fossil sync -autourl', Output); if RetVal = 0 then MsgType := mtInformation else MsgType := mtError; finally Screen.Cursor := crDefault; end; TaskMessageDlg(FRoot, Output, MsgType, [mbOK], 0); end; procedure TVCSFossil.ShowRepositoryUI; begin if not CreateProcess('fossil ui', FRoot) then RaiseLastOSError; end; procedure TVCSFossil.ProcessRename(const OldName, NewName: string); var Text: string; begin if 0 <> ExecuteCmd(Format('fossil rename --soft "%s" "%s"', [OldName, NewName]), Text) then raise EVCSException.Create(Text); end; procedure TVCSFossil.ShowLocalStatusUI; begin if CountPendingFiles > 0 then begin if not CreateProcess('fossil gdiff') then RaiseLastOSError; end else begin if not CreateProcess('fossil ui') then RaiseLastOSError; end; end; function TVCSFossil.SwitchToBranchUI(const BranchName: string): boolean; var Output: string; iRes: Cardinal; MsgType: TMsgDlgType; begin Result := False; iRes := ExecuteCmd(Format('fossil checkout "%s"', [BranchName]), Output); if iRes <> 0 then begin if TaskMessageDlg(FRoot, Output, mtWarning, [mbRetry, mbCancel], 0) = mrCancel then Exit; iRes := ExecuteCmd(Format('fossil update "%s"', [BranchName]), Output); end; Result := iRes = 0; if Result then MsgType := mtInformation else MsgType := mtError; TaskMessageDlg(FRoot, Output, MsgType, [mbOK], 0); end; class function TVCSFossil.IsRepo(const APath: string; out ARootPath: string): boolean; var Lines: TStrings; iRes: Cardinal; begin Lines := TStringList.Create; try Lines.NameValueSeparator := ':'; iRes := ExecuteCmd('fossil info', Lines.Append, False, nil, APath); Result := iRes = 0; if Result then begin ARootPath := Lines.Values['local-root'].Trim.Replace('/', PathDelim, [rfReplaceAll]); end; finally Lines.Free; end; end {TVCSFossil.IsRepo}; end. |
Added src/vcsinfo.InfoWzrd.pas.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | unit vcsinfo.InfoWzrd; interface uses Vcl.Graphics, ToolsAPI, vcsinfo.View; type TVCSInfoStatusWizard = class(TNotifierObject, IOTAWizard) private FLogo: TBitmap; FView: TNotifiers; public constructor Create; destructor Destroy; override; { IOTAWizard } function GetIDString: string; function GetName: string; function GetState: TWizardState; procedure Execute; end; implementation uses System.SysUtils; const scWizardID = 'net.2of4.VCSInfoStatusWizard'; resourcestring rsWizardName = 'VCS Info Wizard'; { ------------------------------------------------------------------------------------------------ } { TVCSInfoStatusWizard } constructor TVCSInfoStatusWizard.Create; begin FLogo := TBitmap.Create; FLogo.LoadFromResourceName(HInstance, 'BMP_LOGO'); SplashScreenServices.AddPluginBitmap(rsWizardName, FLogo.Handle, False, 'Freeware'); (BorlandIDEServices as IOTAAboutBoxServices).AddPluginInfo(rsWizardName, rsWizardName, FLogo.Handle, False, 'Freeware'); // TODO: set up cache (Model) // TODO: set up UI, including timer and notifiers (View) FView := TNotifiers.Create; (BorlandIDEServices as IOTAServices).AddNotifier(FView); // TODO: set up thread queue (Controller) end; destructor TVCSInfoStatusWizard.Destroy; begin // TODO: destroy all the objects we own FLogo.Free; FView.Free; inherited; end; procedure TVCSInfoStatusWizard.Execute; begin // TODO: when will this be called? FView.LogMessage('Execute'); end; function TVCSInfoStatusWizard.GetIDString: string; begin Result := scWizardID; end; function TVCSInfoStatusWizard.GetName: string; begin Result := rsWizardName; end; function TVCSInfoStatusWizard.GetState: TWizardState; begin Result := [wsEnabled]; end; function InitializeWizard(const BorlandIDEServices: IBorlandIDEServices): IOTAWizard; begin Result := TVCSInfoStatusWizard.Create; end; function InitWizard(const BorlandIDEServices: IBorlandIDEServices; RegisterProc: TWizardRegisterProc; var Terminate: TWizardTerminateProc): boolean; stdcall; begin RegisterProc(InitializeWizard(BorlandIDEServices)); Result := True; end; exports InitWizard name WizardEntryPoint; end. |
Added src/vcsinfo.RepoCache.pas.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | unit RepoCache; interface uses System.Generics.Collections, vcsinfo.VCSClient; type TRepoInfo = class private FVCSClient: TVCSClient; FRoot: string; FLastCheckRepo: TDateTime; FBranch: string; FPending: Integer; FUntracked: Integer; FLastCheckWorkDir: TDateTime; FIncoming: Integer; FOutgoing: Integer; FLastCheckRemote: TDateTime; function GetIsRepo: Boolean; function GetBranch: string; public property IsRepo: Boolean read GetIsRepo; property Client: TVCSClient read FVCSClient; property Root: string read FRoot; property Branch: string read GetBranch; property Pending: Integer read GetPending; property Untracked: Integer read GetUntracked; property Incoming: Integer read GetIncoming; property Outgoing: Integer read GetOutgoing; end; TRepoCache = class public end; implementation end. |
Added src/vcsinfo.VCSClient.pas.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 | unit vcsinfo.VCSClient; interface uses System.SysUtils, System.Generics.Collections; type EVCSException = class(Exception); type // e.g. TStrings.Append TTextHandler = procedure(const Text: string) of object; type TVCSClient = class; TVCSClientClass = class of TVCSClient; TVCSClient = class public class function CreateForPath(const APath: string): TVCSClient; class function IsRepo(const APath: string; out ARootPath: string): boolean; virtual; abstract; class procedure RegisterVCSClass(const VCSClass: TVCSClientClass); strict private class var FRegisteredVCSes: TList<TVCSClientClass>; strict private class function InternalExecute(CommandLine: string; var Output: string; OutputLineCallback: TTextHandler; RawOutput: Boolean; AbortPtr: PBoolean; const CurrentDir: string): Cardinal; class function MuteCRTerminatedLines(const RawOutput: string): string; strict protected FRoot: string; class function ExecuteCmd(const CommandLine: string; OutputLineCallback: TTextHandler; RawOutput: Boolean = False; AbortPtr: PBoolean = nil; const CurrentDir: string = ''): Cardinal; overload; class function ExecuteCmd(const CommandLine: string; var Output: string; RawOutput: Boolean = False; AbortPtr: PBoolean = nil; const CurrentDir: string = ''): Cardinal; overload; function CreateProcess(const ACommand: string; ACurrentDir: string = ''; const AShow: boolean = False): boolean; function GetExecutable: string; virtual; abstract; function GetUIExecutable: string; virtual; abstract; function GetTitle: string; virtual; function GetCurrentBranch: string; virtual; public constructor Create(const APath: string); destructor Destroy; override; function GetBranches: TArray<string>; virtual; abstract; function GetIncoming: integer; virtual; abstract; function GetOutgoing: integer; virtual; abstract; function CountPendingFiles: integer; virtual; abstract; function CountUntrackedFiles: Integer; virtual; abstract; function GetStatus: TArray<string>; virtual; abstract; procedure ShowRepositoryUI; virtual; abstract; procedure ShowRemoteStatusUI; virtual; abstract; procedure ShowLocalStatusUI; virtual; abstract; function SwitchToBranchUI(const BranchName: string): boolean; virtual; abstract; procedure ProcessRename(const OldName, NewName: string); virtual; abstract; property Executable: string read GetExecutable; property UIExecutable: string read GetUIExecutable; property Root: string read FRoot; property Title: string read GetTitle; property CurrentBranch: string read GetCurrentBranch; end; implementation uses Winapi.Windows; { TVCSClient } constructor TVCSClient.Create(const APath: string); begin end; destructor TVCSClient.Destroy; begin inherited; end; function TVCSClient.GetCurrentBranch: string; var Branches: TArray<string>; begin // ASSUMPTION: the first branch is the current one Branches := GetBranches; if Length(Branches) > 0 then Result := Branches[0] else Result := ''; end; function TVCSClient.GetTitle: string; begin Result := ExtractFileName(ExcludeTrailingPathDelimiter(FRoot)); end; {$REGION 'Functions to execute command-line and capture output'} //--- JclBase and JclSysUtils -------------------------------------------------- const // line delimiters for a version of Delphi/C++Builder NativeLineFeed = Char(#10); NativeCarriageReturn = Char(#13); function CharIsReturn(const C: Char): Boolean; begin Result := (C = NativeLineFeed) or (C = NativeCarriageReturn); end; // memory initialization procedure ResetMemory(out P; Size: Longint); begin if Size > 0 then begin Byte(P) := 0; FillChar(P, Size, 0); end; end; const ABORT_EXIT_CODE = {$IFDEF MSWINDOWS} ERROR_CANCELLED {$ELSE} 1223 {$ENDIF}; class function TVCSClient.MuteCRTerminatedLines(const RawOutput: string): string; const Delta = 1024; var BufPos, OutPos, LfPos, EndPos: Integer; C: Char; begin SetLength(Result, Length(RawOutput)); OutPos := 1; LfPos := OutPos; EndPos := OutPos; for BufPos := 1 to Length(RawOutput) do begin if OutPos >= Length(Result)-2 then SetLength(Result, Length(Result) + Delta); C := RawOutput[BufPos]; case C of NativeCarriageReturn: OutPos := LfPos; NativeLineFeed: begin OutPos := EndPos; Result[OutPos] := NativeCarriageReturn; Inc(OutPos); Result[OutPos] := C; Inc(OutPos); EndPos := OutPos; LfPos := OutPos; end; else Result[OutPos] := C; Inc(OutPos); EndPos := OutPos; end; end; SetLength(Result, OutPos - 1); end; class function TVCSClient.InternalExecute(CommandLine: string; var Output: string; OutputLineCallback: TTextHandler; RawOutput: Boolean; AbortPtr: PBoolean; const CurrentDir: string): Cardinal; const BufferSize = 255; type TBuffer = array [0..BufferSize] of AnsiChar; procedure ProcessLine(const Line: string; LineEnd: Integer); begin if RawOutput or (Line[LineEnd] <> NativeCarriageReturn) then begin while (LineEnd > 0) and CharIsReturn(Line[LineEnd]) do Dec(LineEnd); OutputLineCallback(Copy(Line, 1, LineEnd)); end; end; procedure ProcessBuffer(var Buffer: TBuffer; var Line: string; PipeBytesRead: Cardinal); var CR, LF: Integer; begin Buffer[PipeBytesRead] := #0; Line := Line + string(Buffer); if Assigned(OutputLineCallback) then repeat CR := Pos(NativeCarriageReturn, Line); if CR = Length(Line) then CR := 0; // line feed at CR + 1 might be missing LF := Pos(NativeLineFeed, Line); if (CR > 0) and ((LF > CR + 1) or (LF = 0)) then LF := CR; // accept CR as line end if LF > 0 then begin ProcessLine(Line, LF); Delete(Line, 1, LF); end; until LF = 0; end; var Buffer: TBuffer; Line: string; PipeBytesRead: Cardinal; {$IFDEF MSWINDOWS} var StartupInfo: TStartupInfo; ProcessInfo: TProcessInformation; SecurityAttr: TSecurityAttributes; PipeRead, PipeWrite: THandle; PCurrentDir: PChar; begin Result := $FFFFFFFF; SecurityAttr.nLength := SizeOf(SecurityAttr); SecurityAttr.lpSecurityDescriptor := nil; SecurityAttr.bInheritHandle := True; PipeWrite := 0; PipeRead := 0; Line := ''; ResetMemory(Buffer, SizeOf(Buffer)); if not CreatePipe(PipeRead, PipeWrite, @SecurityAttr, 0) then begin Result := GetLastError; Exit; end; ResetMemory(StartupInfo, SizeOf(TStartupInfo)); StartupInfo.cb := SizeOf(TStartupInfo); StartupInfo.dwFlags := STARTF_USESHOWWINDOW or STARTF_USESTDHANDLES; StartupInfo.wShowWindow := SW_HIDE; StartupInfo.hStdInput := GetStdHandle(STD_INPUT_HANDLE); StartupInfo.hStdOutput := PipeWrite; StartupInfo.hStdError := PipeWrite; UniqueString(CommandLine); // CommandLine must be in a writable memory block ProcessInfo.dwProcessId := 0; try if CurrentDir <> '' then PCurrentDir := PChar(CurrentDir) else PCurrentDir := nil; if Winapi.Windows.CreateProcess(nil, PChar(CommandLine), nil, nil, True, NORMAL_PRIORITY_CLASS, nil, PCurrentDir, StartupInfo, ProcessInfo) then begin CloseHandle(PipeWrite); PipeWrite := 0; if AbortPtr <> nil then {$IFDEF FPC} AbortPtr^ := 0; {$ELSE ~FPC} AbortPtr^ := False; {$ENDIF ~FPC} PipeBytesRead := 0; while ((AbortPtr = nil) or not LongBool(AbortPtr^)) and ReadFile(PipeRead, Buffer, BufferSize, PipeBytesRead, nil) and (PipeBytesRead > 0) do ProcessBuffer(Buffer, Line, PipeBytesRead); if (AbortPtr <> nil) and LongBool(AbortPtr^) then TerminateProcess(ProcessInfo.hProcess, Cardinal(ABORT_EXIT_CODE)); if (WaitForSingleObject(ProcessInfo.hProcess, INFINITE) = WAIT_OBJECT_0) and not GetExitCodeProcess(ProcessInfo.hProcess, Result) then Result := $FFFFFFFF; CloseHandle(ProcessInfo.hThread); ProcessInfo.hThread := 0; CloseHandle(ProcessInfo.hProcess); ProcessInfo.hProcess := 0; end else begin CloseHandle(PipeWrite); PipeWrite := 0; end; CloseHandle(PipeRead); PipeRead := 0; finally if PipeRead <> 0 then CloseHandle(PipeRead); if PipeWrite <> 0 then CloseHandle(PipeWrite); if ProcessInfo.hThread <> 0 then CloseHandle(ProcessInfo.hThread); if ProcessInfo.hProcess <> 0 then begin TerminateProcess(ProcessInfo.hProcess, Cardinal(ABORT_EXIT_CODE)); WaitForSingleObject(ProcessInfo.hProcess, INFINITE); GetExitCodeProcess(ProcessInfo.hProcess, Result); CloseHandle(ProcessInfo.hProcess); end; end; {$ENDIF MSWINDOWS} {$IFDEF UNIX} var Pipe: PIOFile; Cmd: string; begin Cmd := Format('%s 2>&1', [CommandLine]); Pipe := nil; try Pipe := Libc.popen(PChar(Cmd), 'r'); { TODO : handle Abort } repeat PipeBytesRead := fread_unlocked(@Buffer, 1, BufferSize, Pipe); if PipeBytesRead > 0 then ProcessBuffer(Buffer, Line, PipeBytesRead); until PipeBytesRead = 0; Result := pclose(Pipe); Pipe := nil; wait(nil); finally if Pipe <> nil then pclose(Pipe); wait(nil); end; {$ENDIF UNIX} if Line <> '' then if Assigned(OutputLineCallback) then // output wasn't terminated by a line feed... // (shouldn't happen, but you never know) ProcessLine(Line, Length(Line)) else if RawOutput then Output := Output + Line else Output := Output + MuteCRTerminatedLines(Line); end; class function TVCSClient.ExecuteCmd(const CommandLine: string; var Output: string; RawOutput: Boolean = False; AbortPtr: PBoolean = nil; const CurrentDir: string = ''): Cardinal; begin Result := InternalExecute(CommandLine, Output, nil, RawOutput, AbortPtr, CurrentDir); end; class function TVCSClient.ExecuteCmd(const CommandLine: string; OutputLineCallback: TTextHandler; RawOutput: Boolean = False; AbortPtr: PBoolean = nil; const CurrentDir: string = ''): Cardinal; var Dummy: string; begin Dummy := ''; Result := InternalExecute(CommandLine, Dummy, OutputLineCallback, RawOutput, AbortPtr, CurrentDir); end; {$ENDREGION} function TVCSClient.CreateProcess(const ACommand: string; ACurrentDir: string = ''; const AShow: boolean = False): boolean; var SUI: TStartupInfo; Command: string; ProcInfo: TProcessInformation; begin try SUI := Default(TStartupInfo); SUI.cb := SizeOf(SUI); if ACurrentDir = '' then ACurrentDir := FRoot; if not AShow then begin SUI.dwFlags := STARTF_USESHOWWINDOW; SUI.wShowWindow := SW_MINIMIZE; end; Command := ACommand; UniqueString(Command); Result := Winapi.Windows.CreateProcess(nil, PChar(Command), nil, nil, False, CREATE_UNICODE_ENVIRONMENT, nil, PChar(ACurrentDir), SUI, ProcInfo); except Result := False; end; end {CreateProcess}; class function TVCSClient.CreateForPath(const APath: string): TVCSClient; var VCSClass: TVCSClientClass; RootPath: string; begin for VCSClass in FRegisteredVCSes do begin if VCSClass.IsRepo(APath, RootPath) then begin Result := VCSClass.Create(APath); Exit; end; end; Result := nil; end; class procedure TVCSClient.RegisterVCSClass(const VCSClass: TVCSClientClass); begin FRegisteredVCSes.Add(VCSClass); end; end. |
Added src/vcsinfo.View.pas.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | unit vcsinfo.View; interface uses ToolsAPI, System.Classes, System.Generics.Collections; type TNotifiers = class(TNotifierObject, IOTAIDENotifier, IOTAIDENotifier50, IOTAIDENotifier80, IOTAModuleNotifier, IOTAModuleNotifier80, IOTAModuleNotifier90) private FModules: TDictionary<IOTAModule,Integer>; public constructor Create; destructor Destroy; override; procedure LogMessage(const Text: string; const Args: array of const); overload; procedure LogMessage(const Text: string); overload; public { IOTAIDENotifier } { This procedure is called for many various file operations within the IDE } procedure FileNotification(NotifyCode: TOTAFileNotification; const FileName: string; var Cancel: Boolean); { This function is called immediately before the compiler is invoked. Set Cancel to True to cancel the compile } procedure BeforeCompile(const Project: IOTAProject; var Cancel: Boolean); overload; { This procedure is called immediately following a compile. Succeeded will be true if the compile was successful } procedure AfterCompile(Succeeded: Boolean); overload; { IOTAIDENotifier50 } { Same as BeforeCompile on IOTAIDENotifier except indicates if the compiler was invoked due to a CodeInsight compile } procedure BeforeCompile(const Project: IOTAProject; IsCodeInsight: Boolean; var Cancel: Boolean); overload; { Same as AfterCompile on IOTAIDENotifier except indicates if the compiler was invoked due to a CodeInsight compile } procedure AfterCompile(Succeeded: Boolean; IsCodeInsight: Boolean); overload; { IOTAIDENotifier80 } { Same as AfterCompile on IOTAIDENotifier except adds a project, like it should have done all along. } procedure AfterCompile(const Project: IOTAProject; Succeeded: Boolean; IsCodeInsight: Boolean); overload; public { IOTAModuleNotifier } { CheckOverwrite is called during a SaveAs operation to determine if any files associated with this module will overwrite any other files. Return True to allow the overwrite or no overwrite will occur } function CheckOverwrite: Boolean; { User has renamed the module } procedure ModuleRenamed(const NewName: string); {IOTAModuleNotifier80 } { AllowSave is called immediately prior to doing any type of save operation in order to allow any add-ins to enable/disable the saving of any specific module. This is useful when one module is to be kept in sync with another module such as keeping the name of a module the same base name as the project. } function AllowSave: Boolean; { GetOverwriteFileNameCount returns the number of filenames to check for an overwrite during a save as operation. This is simply a list of files that the IDE will check if they exist. If any of these files exist, then the IDE will prompt for an overwrite and display the filename in the overwrite prompt dialog. } function GetOverwriteFileNameCount: Integer; { GetOverwriteFileName returns the index'd filename for the IDE to check for existence during a save as operation. } function GetOverwriteFileName(Index: Integer): string; { SetSaveFileName will be called with the fully qualified filename that the user entered in the Save As dialog. This name can then be used to determine all the resulting names } procedure SetSaveFileName(const FileName: string); property OverwriteFileNameCount: Integer read GetOverwriteFileNameCount; property OverwriteFileNames[Index: Integer]: string read GetOverwriteFileName; { IOTAModuleNotifier90 } { BeforeRename is call just before the new file is save/renamed on disk.} procedure BeforeRename(const OldFileName, NewFileName: string); { AfterRename is call just after the new file is save/renamed on disk.} procedure AfterRename(const OldFileName, NewFileName: string); end; implementation uses System.SysUtils; { TVCSInfoView } constructor TNotifiers.Create; begin inherited; FModules := TDictionary<IOTAModule,Integer>.Create; end; destructor TNotifiers.Destroy; var Module: IOTAModule; begin for Module in FModules.Keys do begin Module.RemoveNotifier(FModules.Items[Module]); end; FModules.Free; inherited; end; procedure TNotifiers.LogMessage(const Text: string; const Args: array of const); begin LogMessage(Format(Text, Args)); end; procedure TNotifiers.LogMessage(const Text: string); const RFC3339: TFormatSettings = (DateSeparator: '-'; TimeSeparator: ':'; ShortDateFormat: 'yyyy-MM-dd'; LongDateFormat: 'yyyy-MM-dd'; ShortTimeFormat: 'hh:nn:ss'; LongTimeFormat: 'hh:nn:ss.zzz'); var Messages: IOTAMessageServices; Group: IOTAMessageGroup; TimeStamp, Line: string; begin Messages := ToolsAPI.BorlandIDEServices as IOTAMessageServices; Group := Messages.GetGroup(Self.ClassName); if Group = nil then begin Group := Messages.AddMessageGroup(Self.ClassName); Group.CanClose := True; Group.AutoScroll := True; end; TimeStamp := DateTimeToStr(Now, RFC3339); for Line in Text.Replace(#13#10, #10).Split([#10, #13]) do begin Messages.AddTitleMessage(TimeStamp + #9 + Line, Group); if TimeStamp[1] <> #9 then TimeStamp := StringOfChar(#9, 2); end; end {TVCSInfoView.LogMessage}; procedure TNotifiers.AfterCompile(Succeeded, IsCodeInsight: Boolean); begin end; procedure TNotifiers.AfterCompile(const Project: IOTAProject; Succeeded, IsCodeInsight: Boolean); begin if not IsCodeInsight then begin {$MESSAGE WARN 'TODO: update project’s workdir status'} end; end; procedure TNotifiers.AfterCompile(Succeeded: Boolean); begin end; procedure TNotifiers.AfterRename(const OldFileName, NewFileName: string); begin {$MESSAGE HINT 'TODO: rename in VCS as well'} LogMessage('Renamed "%s" to "%s"', [OldFilename, NewFileName]); end; function TNotifiers.AllowSave: Boolean; begin Result := True; {$MESSAGE WARN 'TODO: (re)schedule to refresh the working dir in two seconds'} LogMessage('AllowSave: %d', [Ord(Result)]); (BorlandIDEServices as IOTAModuleServices).CurrentModule.FileName; end; procedure TNotifiers.BeforeCompile(const Project: IOTAProject; var Cancel: Boolean); begin end; procedure TNotifiers.BeforeCompile(const Project: IOTAProject; IsCodeInsight: Boolean; var Cancel: Boolean); begin end; procedure TNotifiers.BeforeRename(const OldFileName, NewFileName: string); begin end; function TNotifiers.CheckOverwrite: Boolean; begin Result := True; end; procedure TNotifiers.FileNotification(NotifyCode: TOTAFileNotification; const FileName: string; var Cancel: Boolean); var NewModule: IOTAModule; Index: Integer; begin case NotifyCode of ofnFileOpened: begin {$MESSAGE WARN 'TODO: (re)schedule to refresh the working dir in a second'} LogMessage('File opened: "%s"', [FileName]); NewModule := (BorlandIDEServices as IOTAModuleServices).FindModule(FileName); if Assigned(NewModule) then begin Index := NewModule.AddNotifier(Self); FModules.Add(NewModule, Index); end; end; ofnActiveProjectChanged: begin {$MESSAGE WARN 'TODO: (re)schedule to refresh the working dir in a second'} LogMessage('Active project changed: "%s"', [FileName]); end; end; end; function TNotifiers.GetOverwriteFileName(Index: Integer): string; begin Result := ''; end; function TNotifiers.GetOverwriteFileNameCount: Integer; begin Result := 0; end; procedure TNotifiers.ModuleRenamed(const NewName: string); begin end; procedure TNotifiers.SetSaveFileName(const FileName: string); begin end; end. |
Changes to todo.md.
︙ | ︙ | |||
106 107 108 109 110 111 112 113 114 115 116 117 | * Overview of current status _(nice to have)_ - `hg -y --summary --remote` - `fossil info` or `fossil status` * Repo title _(nice to have)_ - `hg -yq root` - `fossil sqlite3 "SELECT value FROM config WHERE name='project-name'"` (or `fossil info`, then extract the line starting with `project-name:`) ____________________________________________________________________________________________________ TRepoInfo = class private | > > > | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | * Overview of current status _(nice to have)_ - `hg -y --summary --remote` - `fossil info` or `fossil status` * Repo title _(nice to have)_ - `hg -yq root` - `fossil sqlite3 "SELECT value FROM config WHERE name='project-name'"` (or `fossil info`, then extract the line starting with `project-name:`) * Process rename - `hg -yq rename --after SOURCE DEST` - `fossil rename --soft OLDNAME NEWNAME` ____________________________________________________________________________________________________ TRepoInfo = class private FVCSClient: TVCSClient; FRoot: string; FLastCheckRepo: TDateTime; FBranch: string; FPending: Integer; FUntracked: Integer; FLastCheckWorkDir: TDateTime; FIncoming: Integer; FOutgoing: Integer; FLastCheckRemote: TDateTime; public property IsRepo: Boolean read GetIsRepo; property Client: TVCSClient read FVCSClient; property Root: string read FRoot; property Branch: string; read GetBranch; property Pending: Integer read GetPending; property Untracked: Integer read GetUntracked; property Incoming: Integer read GetIncoming; property Outgoing: Integer read GetOutgoing; end; ____________________________________________________________________________________________________ TWizard.Create // initialize UI part (add icons, create toolbar) // create repo cache // set up thread queue, timer and/or event handlers OnTimer // for current repo, check if any timeout has elapsed; if so, add a task to check it. // if current repo is already being checked, only add it if the new task has more or other // things to do. OnFileSaved // for file's repo, reset the workdir status, so it'll have to be refreshed at the next // trigger. Update the UI to reflect current status. OnSwitchedModule // if we selected a file in a new repo, update the UI to reflect that. Also // set up thread to refresh anything out of date for that repo. ButtonRefresh // refresh all info for the current module or project's repo. ____________________________________________________________________________________________________ GetFileRepo(AFile) AFile > FinalFile Map Final to FinalRepoPath in cache, else (via client) RepoPath > FinalRepoPath Get the repo-info for that FinalRepoPath Use the RepoPath when accessing the client var FFileRepoPaths: TDictionary<string,string>; FRepoCache: TDictionary<string,TRepoInfo>; function FindFileRepo(const AFilename: string): TRepoInfo; var FinalFile, RepoRoot, FinalRepoRoot: string; VCSClient, Client: TVCSClient; begin Result := Default(TRepoInfo); try FinalFile := FinalPathName(AFilename); except FinalFile := AFilename; end; VCSClient := nil; if not FFileRepoPaths.TryGetValue(FinalFile, {out}FinalRepoRoot) then begin for Client in VCSClients do begin if Client.IsInRepo(AFilename, {out} RepoRoot) then begin FinalRepoRoot := FinalPathName(RepoRoot); VCSClient := Client; Break; end; end; if VCSClient = nil then Exit; end; if not FRepoCache.TryGetValue(FinalRepoRoot, {out}Result) and Assigned(VCSClient) then begin Result := TRepoInfo.Create(RepoRoot, VCSClient); FRepoCache.Add(FinalRepoRoot, Result); FFileRepoPaths.AddOrSetValue(FinalFile, FinalRepoRoot); end; end {FindFileRepo}; |