Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345981 - [Client] Git remote:Make git remote consumable by git status page
Summary: [Client] Git remote:Make git remote consumable by git status page
Status: RESOLVED DUPLICATE of bug 345980
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 345980 348551
Blocks: 345978
  Show dependency tree
 
Reported: 2011-05-16 12:35 EDT by libing wang CLA
Modified: 2011-08-30 10:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***