Folder compare ignores ruleset
Moderator: SourceGear
Folder compare ignores ruleset
We use Vault keywords in the header of our source code. We edited the C/C++/C# ruleset to omit lines with the keywords that we use. However, when we compare directories, files that are identical but for keyword contents (eg $Header: contains a different path) are still flagged as different.
When we double-click on a file, the diff confirms that the $Header: line is omitted (it's greyed out) and that there are no other differences between the files.
It makes comparing directories very difficult to do!
When we double-click on a file, the diff confirms that the $Header: line is omitted (it's greyed out) and that there are no other differences between the files.
It makes comparing directories very difficult to do!
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Sorry, but this is by design.
<p>Sorry, but this is by design.
<p>FolderDiff doesn't run the full diff-engine when scanning directories.
It does a straight memcpy on each pair of files and stops as soon as it
finds a difference. This was done for speed. FolderDiff would be even
slower if it ran everythign thru the full diff-engine.
<p>There are problems with this approach -- as you point out and for
stuff like EOL chars -- where it'd be nice if it did it the other way.
<p>I'll put in a request to make this an option.
<p>FolderDiff doesn't run the full diff-engine when scanning directories.
It does a straight memcpy on each pair of files and stops as soon as it
finds a difference. This was done for speed. FolderDiff would be even
slower if it ran everythign thru the full diff-engine.
<p>There are problems with this approach -- as you point out and for
stuff like EOL chars -- where it'd be nice if it did it the other way.
<p>I'll put in a request to make this an option.
-
- Posts: 3
- Joined: Wed Nov 07, 2007 4:28 pm
Re: Folder compare ignores ruleset
I would like to second a request for this feature, even if it is offered as an additional step that I need to initiate after DiffMerge has identified the files that differ regardless of ruleset.
-Kevin
-Kevin
-
- Posts: 1
- Joined: Tue Jul 01, 2008 4:32 pm
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Yes, Good Points.
Yes, good points. I'll add them (and your vote) to the feature request.
j
j
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: Folder compare ignores ruleset
I have a pre-release of DiffMerge 3.3.0 available that addresses the problems
described in this thread. This version optionally uses Ruleset settings in the
folder window to ignore minor differences and show pairs of files as "equivalent".
If you'd like to give it a try, send a note to support at sourcegear.com (attn Jeff
Hostetler) and I'll send you download instructions.
Cheers,
jeff
described in this thread. This version optionally uses Ruleset settings in the
folder window to ignore minor differences and show pairs of files as "equivalent".
If you'd like to give it a try, send a note to support at sourcegear.com (attn Jeff
Hostetler) and I'll send you download instructions.
Cheers,
jeff
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: Folder compare ignores ruleset
SourceGear DiffMerge 3.3.0 is now available and addresses this problem.
We can now use some of the Ruleset settings to treat minor differences as equivalent.
Full details can be found at http://www.sourcegear.com/diffmerge/index.html.
jeff hostetler
We can now use some of the Ruleset settings to treat minor differences as equivalent.
Full details can be found at http://www.sourcegear.com/diffmerge/index.html.
jeff hostetler
Re: Folder compare ignores ruleset
I'm using 3.3 version on Mac OS X. Everything works fine, except in folder view diff not using "Lines to Omit" from ruleset.
In options Folder Equivalence Mode is set to "Exact Match or Ruleset-based File Equivalence Testing".
In folder view files are marked as different. But, then I click go to file view, I get "Files are Identical" message. What is wrong ?
In options Folder Equivalence Mode is set to "Exact Match or Ruleset-based File Equivalence Testing".
In folder view files are marked as different. But, then I click go to file view, I get "Files are Identical" message. What is wrong ?
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: Folder compare ignores ruleset
I've identified a problem in 3.3.0 with "Lines to Omit" and "Folder Window Equivalence"
that is caused by multiple, consecutive omit-able lines. The first line in a block of
omit-able lines is correctly ignored; subsequent ones are not. When there are
changes on the subsequent lines, it causes the Folder Window to say that they are
different rather than equivalent; but then when you open them in a File Window,
you get the equivalent message.
Does this match the problem you are seeing?
jeff
http://support.sourcegear.com/viewtopic ... 33&t=12923
that is caused by multiple, consecutive omit-able lines. The first line in a block of
omit-able lines is correctly ignored; subsequent ones are not. When there are
changes on the subsequent lines, it causes the Folder Window to say that they are
different rather than equivalent; but then when you open them in a File Window,
you get the equivalent message.
Does this match the problem you are seeing?
jeff
http://support.sourcegear.com/viewtopic ... 33&t=12923
Re: Folder compare ignores ruleset
Yes, now I see, it's the same problem.jeffhostetler wrote:I've identified a problem in 3.3.0 with "Lines to Omit" and "Folder Window Equivalence"
that is caused by multiple, consecutive omit-able lines. The first line in a block of
omit-able lines is correctly ignored; subsequent ones are not. When there are
changes on the subsequent lines, it causes the Folder Window to say that they are
different rather than equivalent; but then when you open them in a File Window,
you get the equivalent message.
Does this match the problem you are seeing?
jeff
http://support.sourcegear.com/viewtopic ... 33&t=12923
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: Folder compare ignores ruleset
OK. Thanks. I'll add your post to the log for this bug.
thanks
jeff
15146
thanks
jeff
15146
Re: Folder compare ignores ruleset
Hi,
Thanks for the great program, I find it really useful.
I'm having a problem with the Ruleset-based File Equivalence. It works when I tick the box and click OK, but even though the tickbox state is saved the setting isn't applied the next time.
This means that each time I want to do a folder diff I have to go into settings, untick the selection, click OK, go back into settings and re-tick the selection and click OK.
Thanks for the great program, I find it really useful.
I'm having a problem with the Ruleset-based File Equivalence. It works when I tick the box and click OK, but even though the tickbox state is saved the setting isn't applied the next time.
This means that each time I want to do a folder diff I have to go into settings, untick the selection, click OK, go back into settings and re-tick the selection and click OK.
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: Folder compare ignores ruleset
That's odd.
What platform are you using?
If you turn it on and save and then exit and re-launch is it still turned on?
jeff
What platform are you using?
If you turn it on and save and then exit and re-launch is it still turned on?
jeff