Compare difference between command line and gui
Moderator: SourceGear
Compare difference between command line and gui
Dear all,
In my project I want to use DiffMerge for comparing several output files. To make it easier, I created a batch script to do so.
Now my problem is, that I have created a Ruleset to check for date and time and mark those as not important. In the GUI these errors are shown and when View -> Ignore unimportant differences is selected, these differences are ignored.
Unfortunately, when I use the command line these differences are not ignored. The exit code is 1 and a output file with the differences is created. I do have the option -i listed, as specified here (https://sourcegear.com/diffmerge/webhel ... ofile.html).
Is there an other option I need to add? How do I make sure my ruleset is active?
Thanks in advance.
In my project I want to use DiffMerge for comparing several output files. To make it easier, I created a batch script to do so.
Now my problem is, that I have created a Ruleset to check for date and time and mark those as not important. In the GUI these errors are shown and when View -> Ignore unimportant differences is selected, these differences are ignored.
Unfortunately, when I use the command line these differences are not ignored. The exit code is 1 and a output file with the differences is created. I do have the option -i listed, as specified here (https://sourcegear.com/diffmerge/webhel ... ofile.html).
Is there an other option I need to add? How do I make sure my ruleset is active?
Thanks in advance.
Re: Compare difference between command line and gui
Hello,
Would you mind providing us with an example of your command line using the -i feature?
This feature was implemented awhile back and should work accordingly.
Thanks,
Tonya
Would you mind providing us with an example of your command line using the -i feature?
This feature was implemented awhile back and should work accordingly.
Thanks,
Tonya
Re: Compare difference between command line and gui
Dear Tonya,
Thank you for your response. The command I use is as follows:
I have also tried with "-i", but according to your documentation "/i" is the same.
Thank you for your response. The command I use is as follows:
Code: Select all
set DIFFMERGE_LOCATION="C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe"
set BASELINE_LOCATION=C:\Documents\Baselines
set COMPARE_LOCATION=C:\Documents\Output
set SCENARIO=0003-PriceScenario
set SCENARIO_LABEL=DIFFMERGE_TEST
%DIFFMERGE_LOCATION% -d=diff_%ldt%_%SCENARIO_LABEL%_6.txt /i "%BASELINE_LOCATION%\%SCENARIO%\baseline_file_1.txt" "%COMPARE_LOCATION%\output_file_1.txt"
Re: Compare difference between command line and gui
What operating system are using (please include the version)?
You've attempted the command-line using "-i" instead of "/i" with the same outcome? The prefix used is platform specific.
Thanks,
Tonya
You've attempted the command-line using "-i" instead of "/i" with the same outcome? The prefix used is platform specific.
Thanks,
Tonya
Re: Compare difference between command line and gui
Hello Tonya,
Thank you for your reply. I'm using Win 10 Pro (64b), which is up-to-date.
The output with -i:
The output with /i:
I see no differences there.
Contents of my ruleset:
Classify Differences as Important is not selected for both.
Thank you for your reply. I'm using Win 10 Pro (64b), which is up-to-date.
The output with -i:
Code: Select all
13,14c13,14
< EXPORTDATE: "31/12/2020"
< EXPORTTIME: "04:19:57"
---
> EXPORTDATE: "10/02/2020"
> EXPORTTIME: "10:10:30"
Code: Select all
13,14c13,14
< EXPORTDATE: "31/12/2020"
< EXPORTTIME: "04:19:57"
---
> EXPORTDATE: "10/02/2020"
> EXPORTTIME: "10:10:30"
Contents of my ruleset:
Code: Select all
EXPORTTIME: \"\d{2}:\d{2}:\d{2}\"
EXPORTDATE: \"\d{2}\/\d{2}\/\d{4}\"
Re: Compare difference between command line and gui
I wanted to let you know that we are currently working on reproducing the issue. I will be back in touch when I have more information to share.
Thank you for your patience.
Tonya
Thank you for your patience.
Tonya
Re: Compare difference between command line and gui
Hello Tonya,
Thank you for looking into this. Please let me know if you need any additional information.
With kind regards,
Sjakie
Thank you for looking into this. Please let me know if you need any additional information.
With kind regards,
Sjakie
Re: Compare difference between command line and gui
I wanted to let you know that we have been able to reproduce the problem with the -i option in the CLC. I have logged this as a bug in our system to be considered in a future release.
Thank you for reporting this issue.
Tonya
Thank you for reporting this issue.
Tonya
Re: Compare difference between command line and gui
Dear Tonya,
Thank you for your reply. Can you give me an estimation when this will be solved?
With kind regards,
Sjakie
Thank you for your reply. Can you give me an estimation when this will be solved?
With kind regards,
Sjakie
Re: Compare difference between command line and gui
Unfortunately, I do not have an estimation I can provide of when this will be resolved. We are currently working on a new DiffMerge release but I don't have a specific release date yet.
Tonya
Tonya