Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 400499

Summary: "Compare with working tree" action in git log page is not working.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2013-02-11 16:40:32 EST
I noticed this when trying the selection model in all pages.
I happened to try "Compare with working tree" action in git log page, although it is not used as my regular work flow.
I found that compareWithWorkingTree command in gitCommands.js is not passing a good diff URL to compare widget.
The data.items.DiffLocation could not resolve the two file URLs as the compareGitCommits command does. 

By the way, another alternative is to pass the two file URLs to the compare widget. The widget will resolve diff on client side.
mCompareUtils.generateCompareHref(theURLOfTheCommit, {compareTo: the URLOnWorkingTree, readonly: true}).


The mCompareUtils.generateCompareHref function will just generate a compare URLtemplate, where the "compareTo" property in the URLTemplate represent the file URL that will be rendered on the right side of the compare widget.
Comment 1 John Arthorne CLA 2015-05-05 15:48:32 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
Comment 2 John Arthorne CLA 2015-05-05 16:01:44 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html