Mike Torrettinni 198 Posted March 6, 2022 Every now and then I notice that SourceTree seems to detect as if the whole .dproj file is changed: ... and all red lines until line 499, the limit to what it shows. If I use External diff option, the Beyond Compare finds just 2 lines of change: I will report to JIRA, but since it's freeware I doubt any useful help will be provided. I'm curios if anybody else noticed this anomaly and found a solution. Could it be 10.2.3 IDE is causing some odd issue that triggers how SourceTree handles this file, while BeyondCompare handles it correctly? Share this post Link to post
Der schöne Günther 316 Posted March 6, 2022 (edited) It's just a text file. My guess is that either the file encoding or line breaks have changed. If you can provide a file "before" and "after", I'm sure we can find what's up. I don't know about SourceTree, but diff editors often have an option whether line breaks or whitespace changes should be taken into account. Edited March 6, 2022 by Der schöne Günther 1 Share this post Link to post
Mike Torrettinni 198 Posted March 6, 2022 1 hour ago, Der schöne Günther said: whitespace changes That was it! I had an option to hide whitespace difference. Here is without this option enabled: I checked the other .dproj files and with new project and actually double (4 char) indentation seems to be normal, so every now and then I get a version with single (2 char) indentation. Share this post Link to post
Anders Melander 1815 Posted March 6, 2022 4 hours ago, Mike Torrettinni said: I will report to JIRA, but since it's freeware I doubt any useful help will be provided. SourceTree is made by Atlassian. Any time you spend reporting bugs to them would better spent picking your nose. 2 Share this post Link to post
Uwe Raabe 2064 Posted March 6, 2022 36 minutes ago, Mike Torrettinni said: so every now and then I get a version with single (2 char) indentation. This is probably a project last edited with an older Delphi version, which always wrote two spaces. Alas, I don't remember which one. Share this post Link to post
Mike Torrettinni 198 Posted March 7, 2022 1 hour ago, Uwe Raabe said: This is probably a project last edited with an older Delphi version, which always wrote two spaces. Alas, I don't remember which one. It could be some relic from older versions (the project went from D7 -> D2006 -> D2009 -> a few XEs -> 10.2.3), and I've been using 10.2.3 for years now with this project, and the change I showed above occurred in today's commit. Share this post Link to post
Vincent Parrett 765 Posted March 7, 2022 2 hours ago, Anders Melander said: SourceTree is made by Atlassian. Any time you spend reporting bugs to them would better spent picking your nose. Classic! I can certainly attest to this.. currently researching how to migrate away from confluence for our documentation site. Share this post Link to post
Mike Torrettinni 198 Posted March 7, 2022 2 hours ago, Anders Melander said: SourceTree is made by Atlassian. Any time you spend reporting bugs to them would better spent picking your nose. Yes, I had a feeling it could be something like that. Their SourceTree support site doesn't give too much confidence: https://community.atlassian.com/t5/Sourcetree/ct-p/sourcetree Luckily, it was mistake on my side not realizing the option to ignore whitespace was switched on, in Beyopnd Compare, so nothing to report to JIRA. Share this post Link to post
dummzeuch 1517 Posted March 7, 2022 I've solved this problem for me by calling Uwe Raabe's Project Magician (Dproj Normalizer for older versions) as an input filter in beyond compare. Not quite as simple as it could be, because it overwrites the input file, but with a little bit of my own magic aka InplaceExeWrapper this works fine. Share this post Link to post
Uwe Raabe 2064 Posted March 7, 2022 59 minutes ago, dummzeuch said: Not quite as simple as it could be, because it overwrites the input file, You can specify a different target path with the -o parameter. I know this option is missing in the help. 1 Share this post Link to post
Edwin Yip 154 Posted March 7, 2022 9 hours ago, Vincent Parrett said: Classic! I can certainly attest to this.. currently researching how to migrate away from confluence for our documentation site. Will you share your final choice with us then? ;) Share this post Link to post
dummzeuch 1517 Posted March 7, 2022 1 hour ago, Uwe Raabe said: You can specify a different target path with the -o parameter. I know this option is missing in the help. Does that also apply to DprojNormalizer? Share this post Link to post
Vincent Parrett 765 Posted March 7, 2022 1 hour ago, Edwin Yip said: Will you share your final choice with us then? 😉 Don't hold your breath, I've been looking for a while, don't feel like anything has stood out so far. Share this post Link to post
Uwe Raabe 2064 Posted March 7, 2022 1 hour ago, dummzeuch said: Does that also apply to DprojNormalizer? Yes, it does. 1 Share this post Link to post