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

Bug 345981

Summary: [Client] Git remote:Make git remote consumable by git status page
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 345980, 348551    
Bug Blocks: 345978    

Description libing wang CLA 2011-05-16 12:35:58 EDT
please refer to bug 345978
Comment 1 Szymon Brandys CLA 2011-06-06 10:19:02 EDT
I thought bug 345978 was deferred. I'll check tomorrow how much time is
needed to fix bug 345980 and bug 345981 and let you know.
Comment 2 Szymon Brandys CLA 2011-06-07 03:32:54 EDT
Gosia has cycles to look at it.
Comment 3 Malgorzata Janczarska CLA 2011-06-07 08:44:32 EDT
To display the git remote view follow the instructions in bug 345980 comment 3 until point 4.
To populate the navigator with data for given Remote you should call:

navigator.loadCommitsList(Remote.CommitLocation + "?page=1");

If you want incoming commits to be marked you should pass the json list to

navigator.renderer.setIncomingCommits(IncomingCommitsJsonData);

as said in bug 345980 comment 3 this should be called _before_ loadCommitsList.
You may obtain the incoming commits json data from gitService.getLog, like this:

gitService.getLog(Remote.HeadLocation, Remote.Id, function(scopedCommitsJsonData, secondArd) {
		navigator.renderer.setIncomingCommits(scopedCommitsJsonData);
		navigator.loadCommitsList(Remote.CommitLocation + "?page=1");
	});

Where "Remote" is a json representation of the git remote.
Comment 4 Malgorzata Janczarska CLA 2011-06-07 10:57:43 EDT
I've pushed changes in bug 345980. I'm closing it as duplicate, because this is practically the same.

*** This bug has been marked as a duplicate of bug 345980 ***