Compare difference between command line and gui

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
sjakiepp1
Posts: 5
Joined: Tue Feb 18, 2020 3:35 am

Compare difference between command line and gui

Post by sjakiepp1 » Tue Feb 18, 2020 4:27 am

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.

Tonya
Posts: 579
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: Compare difference between command line and gui

Post by Tonya » Tue Feb 18, 2020 4:07 pm

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

sjakiepp1
Posts: 5
Joined: Tue Feb 18, 2020 3:35 am

Re: Compare difference between command line and gui

Post by sjakiepp1 » Wed Feb 19, 2020 3:14 am

Dear Tonya,

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"
I have also tried with "-i", but according to your documentation "/i" is the same.

Tonya
Posts: 579
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: Compare difference between command line and gui

Post by Tonya » Thu Feb 20, 2020 10:29 am

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

sjakiepp1
Posts: 5
Joined: Tue Feb 18, 2020 3:35 am

Re: Compare difference between command line and gui

Post by sjakiepp1 » Fri Feb 21, 2020 2:57 am

Hello Tonya,

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"
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"
I see no differences there.

Contents of my ruleset:

Code: Select all

EXPORTTIME: \"\d{2}:\d{2}:\d{2}\"
EXPORTDATE: \"\d{2}\/\d{2}\/\d{4}\"
Classify Differences as Important is not selected for both.

Tonya
Posts: 579
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: Compare difference between command line and gui

Post by Tonya » Mon Feb 24, 2020 3:56 pm

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

sjakiepp1
Posts: 5
Joined: Tue Feb 18, 2020 3:35 am

Re: Compare difference between command line and gui

Post by sjakiepp1 » Tue Feb 25, 2020 8:00 am

Hello Tonya,

Thank you for looking into this. Please let me know if you need any additional information.

With kind regards,
Sjakie

Tonya
Posts: 579
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: Compare difference between command line and gui

Post by Tonya » Wed Feb 26, 2020 11:24 am

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

sjakiepp1
Posts: 5
Joined: Tue Feb 18, 2020 3:35 am

Re: Compare difference between command line and gui

Post by sjakiepp1 » Thu Feb 27, 2020 5:12 am

Dear Tonya,

Thank you for your reply. Can you give me an estimation when this will be solved?

With kind regards,
Sjakie

Tonya
Posts: 579
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: Compare difference between command line and gui

Post by Tonya » Thu Feb 27, 2020 8:29 am

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

Post Reply