index > Team Foundation Server - Version Control > diffmerge and whitespace

diffmerge and whitespace


Diffmerge is incorrectly ignoring whitespace in literal strings causing the checkin of these changes to abort because it detects no change. Are you aware of this problem? Is there a fix on the way?

How do we work around it? Do all of our developers need to change their individual setups?




-E
Eddie Garcia

Diffmerge tool has /ignorespace parameter. You can remove that param by configuring your diff tool. For steps: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=99624&SiteID=1

Naren Datha - MSFT

Thanks for the pointer, but isn't it a bug if it is discarding or ignoring whitespace between quotatioins or within literal strings?




-E
Eddie Garcia
Team Foundation does not use the diff/merge engine when determining if the file has changed. It compares MD5 hashes. It's very unlikely two files would have the same hash even if the only difference is whitespace. Can you verify that the files are actually different using a binary-mode comparison?
Richard Berg MSFT

No, you are correct. I misunderstood our developer and thought that it was preventing the checkin because it didn't detect a difference. When in reality the developer was preventing the checkin because diffmerge was not detecting the whitespace he/she had added to the literal string.

So is this something that is going to get fixed in diffmerge? What if you really DO want to ignore whitespace but not within literal strings?

Thanks for your help.




-E
Eddie Garcia
Sorry, I doubt that diffmerge.exe will add this feature. It does not know about C# (or any other language), so language elements like 'whitespace inside string literals' look the same as any other whitespace.
Richard Berg MSFT
reply 6

You can use google to search for other answers

 

More Articles

VSSConverter Error TF60041
Force a compile on check-in
Find in Files
Discrepancy when files are deleted
Can't undo CreateTeamProjectFolder()
Use TFS with our DataBase functions, SP's etc.
How to determine solution workspace?
Checking in Enterprise Library
Problems with QueryLabels
How can I find out what my team has checked out?
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Re: Can't undo CreateTeamProjectFolder()
Version Control Setup
Branch with DLL's files
web projects, .net 1.1 and TFS?
VssConverter problem
MSSCCI provider causes VC6 crash
Two different ID's seems to see the same…
How to backup and restore Source Control…
Merge Changeset Question/Suggestion
Check In by Changeset After Merge
TF14043: An error occurred computing the…
how to delete the file or folder in v…
ThreeWayMerge.Run() crashes when IsBasel…
Shared Workspace error message
Problem branching on TFS server

Hot Articles

How-to branch from 3rd party external co…
Any exiting tools or method to print out…
Checkin changes on behalf of another user
Possible to get warnings message popup w…
Customizing Team Explorer
Any experience using cs-converter?
Lock Binary Files on Checkout
VSS Migration hanging TF60047 - how to m…
Associating server folders with comment.
Synchronizing current file in Solution E…
Merge/Checkout scenario
Checkin policy dll is blocked after the …
Branc Specifications
Problem when deleting and adding a new p…
tf get from linux

Recommend Articles

Replacing an existing project in TFS sou…
"retiring" or locking a branch…
whitepaper, docs about version control
Open solution of other user
Trying to move source causes weird error
Problems while using TFVC Web Service
Force undo pending changes - grayed out …
Problem with check in after merge
Change Local Path after download files f…
Using MSSCCI provider with VS 2003
HELP: How can I remove team projects fro…
Check In Comment
Corruption in Source control
How to define a TFS group that can read/…
Official data about overhead and perform…