Bug 3187 - hg diff option to ignore capitalization differences.
Summary: hg diff option to ignore capitalization differences.
Status: RESOLVED ARCHIVED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: wish feature
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 13:22 UTC by Bill Schauer
Modified: 2014-07-31 13:22 UTC (History)
5 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Schauer 2012-01-05 13:22 UTC
UNIX users may have little use for this option but I keep running into it 
on Windows, which is not case sensitive. A particular offender is Excel. 
Excel has the facility to output it's sheets in text format. 
Unfortunately, for the Basic modules it does not consistently use the same 
choice for capitalization. Sometimes it will write out "the.hwd" and at 
other sometimes "The.Hwd". This makes diffs a mass of irrelevant changes. 
This makes it difficult to find a real difference amongst all the 
irrelevant ones. We are often just reduced to checking the files visually 
line by line. We have found no way to control this though Excel. Please 
consider. Almost all the diff programs that I have used have this option. 
This problem alone my cause us to abandon Mercurial for revision control. 
That would be a shame because otherwise we have found it to be almost 
ideal for our particular projects.
Comment 1 Neil Youngman 2012-02-17 08:17 UTC
Please note that this can worked around with the extdiff extension, provided
that you have a suitable external diff program available, e.g. on my Linux
box I added this to my hgrc file

[extensions]
extdiff =

[extdiff]
gdiff = diff -Npru


This makes "hg gdiff" run the GNU diff tool with an appropriate set of
options. To make it case sensitive, I can either add the -i option in the
configuration, or, if I prefer it to be optional, I can use "hg gdiff
--option=-i".

Having said that, it would be nice to have a native -i option.
Comment 2 Schauer Bill-B04665 2012-02-20 11:33 UTC
Neil,

Thanks for the tip.
Unfortunately the decision has been made to not use Mercurial for revision control in my organization.

Bill
Comment 3 Bugzilla 2012-05-12 09:26 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:26 EDT  ---

This bug was previously known as _bug_ 3186 at http://mercurial.selenic.com/bts/issue3186
Comment 4 Matt Mackall 2014-07-25 17:22 UTC
Bulk close: no activity for >2 years -> WONTFIX
Comment 5 Matt Mackall 2014-07-31 13:22 UTC
Bulk change recent WONTFIX -> new, more descriptive ARCHIVED state (sorry for the spam)