Forums / Upgrading to 1.5.x / Using WinMerge

Using WinMerge

Sticky Locked

Views: 64,866

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
29 Sep 2004, 6:01 PM
#1
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Using WinMerge

Using WinMerge

You can install WinMerge by downloading the latest version from their website at: http://winmerge.sf.net

After installing, run it.

**To compare files **press CTRL-O (File | Open) and choose the desired individual files to compare.
Or, drag-and-drop files from an explorer window onto the WinMerge window. The 2nd file you drag onto WinMerge needs to be dragged onto the 2nd filename box.
Click OK, and the files' contents will be compared, with differences highlighted.

There are arrow buttons in the navigation bar to allow you to move down and up thru known differences, and left/right to copy text from one to the other.

ESC exits. If you've made any changes, you'll be prompted to save them, for both files (if relevant).

When comparing, if you see only left-side or right-side files, click on the "View" menu and choose "Show Different Items".
Probably best to not choose "Show Identical Items" because if the files are identical, you don't need to review them.

**To compare entire folders, **do the same as for files above, but only enter folder names (or drag-and-drop). BE SURE TO CHECK THE "Recursive" CHECKBOX so that it knows to compare files in subdirectories too.

You'll see a list of files after comparison. Under the "View" menu, deselect "Identical Files". You can optionally enable/disable left/right comparison results too.

To look at diff's in displayed files, double-click or press Enter on a highlighted entry. Edit as described above for individual file diff's.

**
Preventing it from flagging line-endings as changes**
If your FTP program mangles your files by changing line-endings, you'll want to tell WinMerge to ignore carriage return differences.

Optional Configuration:
Choose Tools | Filters | Linefilters tab and check the "Ignore lines..." box, and enter this:
(Prior to WinMerge v2.2, choose: Edit | Options | Filters and check the RegEx box)

//.*
[/]{2}.*[\|\+]*
[/]{2}\s*\$[\s]?Id: .*\$
^ \* @version \$Id:.*\$
#\s*\$[\s]?Id: .*
```This will tell WinMerge to ignore commented text as well as common header components in each file. 
This allows comparing between ZC release versions without having to worry about files that only have changes in the headers or in commented text.




*In terms of replying to this post, please keep discussion only to issues regarding WinMerge.  If you have questions about Zen Cart or editing Zen Cart files or Upgrading Zen Cart, please post those in a separate thread. Thanks!*

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Sep 2004, 12:07 PM
#2
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Using WinMerge

DrByte:

Optional Configuration:
Choose Edit | Options | Filters and check the RegEx box, and enter this:```
//.*
[/]{2}.[|+]
[/]{2}\s*$[\s]?Id: .$
#\s
$[\s]?Id: .*

> This allows comparing between ZC release versions without having to worry about files that only have changes in the headers or in commented text.
Exactly what i was looking for, this makes it much easyer to use WinMerge to compare zen-cart files/versions!

You're great! ::tup
16 Mar 2005, 10:25 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Using WinMerge

Update related WinMerge 2.x

You can also implement "file" filters.

If you're working with a Subversion repository (on ANY project), you can create the following File Filter to exclude any SVN file components from the comparisons:

## This is a directory/file filter for WinMerge
## This filter suppresses various binaries found in SVN source trees
name: SVN loose

## This is an inclusive (loose) filter
## (it lets through everything not specified)
def: include

## Filters for filenames begin with f:
## Filters for directories begin with d:
## (Inline comments begin with " ##" and extend to the end of the line)

f: \..svn$ ## SVN control file

d: \\cvs$ ## CVS control directory
d: \\.svn$ ## SVN control directory

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Apr 2005, 3:56 AM
#4
picnichouse avatar

picnichouse

New Zenner

Join Date:
Jan 2005
Posts:
62
Plugin Contributions:
0

Re: Using WinMerge

Anyone know of a similar utility for OS X?

15 Apr 2005, 3:59 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Using WinMerge

For the Mac, there's BBEdit (commercial) and Text Wrangler (free), which do 2-way comparisons, and DeltaWalker which does 3-way comparisons.

More details here: http://www.zen-cart.com/wiki/index.php/Useful_Tools

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Apr 2005, 10:39 PM
#6
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Using WinMerge

May be worth for look at.

KDiff3 work in different platforms (Linux/Mac)
http://kdiff3.sourceforge.net/

A New Starter again

16 May 2005, 2:48 PM
#7
igneramos avatar

igneramos

New Zenner

Join Date:
Apr 2005
Posts:
1
Plugin Contributions:
0

Re: Using WinMerge

Or if you've installed the Developer Tools for OS X, FileMerge has the same core functionality. Developer->Applications->Utilities.

Diff exists on the command line as well - but it's a little more cryptic to work with...

22 Jun 2005, 3:14 AM
#8
mcockfi avatar

mcockfi

New Zenner

Join Date:
Feb 2005
Location:
Traverse City, MI
Posts:
29
Plugin Contributions:
0

Re: Using WinMerge

For OS X take a look at zsCompare from Zizasoft. I have used it to apply the 1.2.4.1 and 1.2.5 upgrades, a number of contributions, and to migrate files from my development environment to my test webserver.

Insanity: Doing the same thing over and over and expecting different results. -Albert Einstein

My site: Harbor Fare

29 Jun 2005, 1:59 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Using WinMerge

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2005, 2:38 PM
#10
hernia1 avatar

hernia1

New Zenner

Join Date:
Jun 2005
Posts:
17
Plugin Contributions:
0

Re: Using WinMerge

Anyone know where I can find something to interpret all of the filter options listed, it's all greek and if I just use ```
^// \WId: .*$


I've already been here and the manual is still too cryptic:
[http://winmerge.sourceforge.net/2.2/manual...al/filters.html](http://winmerge.sourceforge.net/2.2/manual/filters.html)

Thanks!

[edit below:]
Oh...Regular Expressions references <_< :

[http://www.amk.ca/python/howto/regex/](http://www.amk.ca/python/howto/regex/)
[http://www.zvon.org/other/PerlTutorial/Out...tput/index.html](http://www.zvon.org/other/PerlTutorial/Output/index.html)
[http://gmckinney.info/resources/regex.pdf](http://gmckinney.info/resources/regex.pdf)