Recent

Author Topic: Project Comparison  (Read 2608 times)

simone

  • Hero Member
  • *****
  • Posts: 573
Project Comparison
« on: June 15, 2017, 10:19:03 am »
Dear all, for debugging purposes, I need to compare two snapshots of a project. I see the comparison tool available in Lazarus, but it compare two file, not two projects. So, do I need to use an external tool (i.e. Meld) that is able to compare two directories? Thanks.
Microsoft Windows 10 64 bit - Lazarus 3.0 FPC 3.2.2 x86_64-win64-win32/win64

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Project Comparison
« Reply #1 on: June 15, 2017, 10:56:36 am »
Yes, you need to use an external tool.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

simone

  • Hero Member
  • *****
  • Posts: 573
Re: Project Comparison
« Reply #2 on: June 15, 2017, 11:14:22 am »
Thanks. I thought I missed something. I think it might be useful to consider this feature in future versions of Lazarus.
Microsoft Windows 10 64 bit - Lazarus 3.0 FPC 3.2.2 x86_64-win64-win32/win64

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11450
  • FPC developer.
Re: Project Comparison
« Reply #3 on: June 29, 2017, 08:49:29 am »
(I use cygwin's diff for that with a batchfile to set default opts. The arguments (%1 and %2) are directories)

diff -udirwB --ignore-file-name-case --strip-trailing-cr   %1 %2 >diff.txt
unix2dos diff.txt
start notepad diff.txt

)

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Project Comparison
« Reply #4 on: June 29, 2017, 02:44:08 pm »
You can use Beyond Compare (commercial) or WinMerge (free).
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018