+1 for getting rid of unit count and numeric tag suffixes from XML
project/package files. They always create trouble for version control.
-1 for switching to JSON. Seems radical and unjustified, in my opinion.
Denis
On 03/03/2018 10:15, Michael Van Canneyt via Lazarus wrote:
Hello,
The package .lpk andproject .lpi file use the following format :
<Units Count="241">
<Unit0>
<Filename Value="lazarus.pp"/>
<IsPartOfProject Value="True"/>
<UnitName Value="Lazarus"/>
</Unit0>
<Unit1>
<Filename Value="frames/oi_options.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="OIOptionsFrame"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Frame"/>
</Unit1>
And similarly
<RequiredPackages Count="7">
<Item1>
<PackageName Value="LazDebuggerGdbmi"/>
</Item1>
<Item2>
<PackageName Value="LCLBase"/>
<MinVersion Major="1" Release="1" Valid="True"/>
</Item2>
Is it possible to get rid of the counts ?
Reason: if 2 people add files to a package/project, it always creates
conflicts when updating from the VCS. And if you're in bad luck, you
need to change a lot of items.
On the other hand, if you do
<RequiredPackages>
<Package name="LazDebuggerGdbmi"/>
<Package name="LCLBase">
<MinVersion Major="1" Release="1" Valid="True"/>
</Package>
The chance of conflicts becomes less, and the resolution easier.
Michael.
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus