Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » EGit Working on Bug - pull Gerrit review(Help to pull a Gerrit review from remote to a local branch. )
EGit Working on Bug - pull Gerrit review [message #1693557] Sat, 25 April 2015 03:49 Go to next message
Eclipse UserFriend
Hallo,

I'm working on an Eclipse Bug, and I would like to get a specific Gerrit Review and apply all the latest changes to this review, in order to verify if this Review is still working.

After I started working on that bug I created a new empty branch, and now I would like to

  • pull a Gerrit review for that bug, from Eclipse Gerrit to my local branch.
  • apply all the latest changes from master to the branch with the review


In order to achieve this, I will need to get response to 2 questions:

  • Can anyone suggest me how to apply the new changes from ( local or remote) master to the new branch containing the Gerrit review ?
  • Can anyone suggest me how to pull a Gerrit review to a new Empty branch ?


Any suggestion is welcome

Thanks and Regards.
Re: EGit Working on Bug - pull Gerrit review [message #1693620 is a reply to message #1693557] Sun, 26 April 2015 16:43 Go to previous messageGo to next message
Eclipse UserFriend
This is described in the user guide [1].

First in the repositories view open the repository's node and select the remote pointing at Gerrit
(most often this is called origin) and click "Configure Gerrit..." and follow [2] for configuring access to Gerrit.
Then follow [3] to fetch the change you are interested to a local branch. If the change you fetched isn't
based on the remote tracking branch you are aiming at you may rebase it on that (most often you
rebase on origin/master since most often you are aiming for the master branch on the server).
If you want to improve the change in review change the files you want to improve and commit amend.
Then use "Push to Gerrit..." to push the improved commit back for review.

[1] https://wiki.eclipse.org/EGit/User_Guide#Working_with_Gerrit
[2] https://wiki.eclipse.org/EGit/User_Guide#Gerrit_Configuration
[3] https://wiki.eclipse.org/EGit/User_Guide#Fetching_a_change_from_a_Gerrit_Code_Review_Server
Re: EGit Working on Bug - pull Gerrit review [message #1694888 is a reply to message #1693620] Fri, 08 May 2015 14:29 Go to previous message
Eclipse UserFriend
Matthias,

Your suggestion was very useful:

I already had Gerrit configured for that repository
So I fetched the Gerrit change into a local branch
And I rebased the local branch to the remote master

Thank you very much !
Previous Topic:Finding a merge commit with JGit
Next Topic:Can't push project to GitHub
Goto Forum:
  


Current Time: Sat Nov 08 22:04:09 EST 2025

Powered by FUDForum. Page generated in 0.03716 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top