Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Gemini/DBAccess/CommitterGuide/HowToUseGerrit

Gerrit is a web based code review system that seamlessly integrates with git. Gerrit is the preferred way contribute to DBAccess. Using Gerrit at Eclipse.org is desctibed on Gerrit. The DBAccess specfics and some hints will be described below.

IP Process

The IP process for Gerrit is described here: Development Resources/Handling Git Contributions#Gerrit

Setup

To setup your access to Gerrit follow the documentation Gerrit#Logon. You should perform the following steps:

  1. Add the dbaccess project to the list of projects you watch: https://git.eclipse.org/r/#/settings/projects
    1. Add the the following project name: gemini.dbaccess/org.eclipse.gemini.dbaccess and select all attributs (New Changes, All Comments, Submitted Changes)
  2. Upload your SSH public keys to Gerrit if you wish to use SSH: https://git.eclipse.org/r/#/settings/ssh-keys

Eclipse IDE Configuration

The Gerrit code repository can either be accessed via ssh or https. To clone and import the dbaccess project into your workspace, please follow the description EGit/User_Guide#Cloning_Remote_Repositories.

Note: the import can be largly simplified by choosing "Gerrit" in the import wizard at step "Select Repository Source". You then press the "Add" Button. The "Servers" field offers you a drop down list, which contains the "Eclipse.org Reviews" entry. Choose that, and press "Finish". The following screen shows you all projects at Eclipse.org which use the Gerrit code review. You then select "gemini.dbaccess/org.eclipse.gemini.dbaccess" (you can use the filter "dbaccess" to easily find this entry from the list). Just confirm the following dialogs. The result is

  1. a workspace that contains all dbaccess projects,
  2. a local clone of the DBAccess git repository; change to the "Git Repository Exploring" perspective to see the repository.

Depending on the protocol you want to use, the following URIs represent the DBAccess repository:

SSH

ssh://userid@git.eclipse.org:29418/gemini.dbaccess/org.eclipse.gemini.dbaccess.git

HTTPS

https://git.eclipse.org/r/p/gemini.dbaccess/org.eclipse.gemini.dbaccess.git

How to Sync a change from Gerrit

In order to sync a change from Gerrit (that has not yet been merge into the git repository), you first need to perform the steps described in the previous sections. Then

  1. Change to the "Git Repository Exploring" perspective to see the repository.
  2. Choose "Fetch from Gerrit" in the context menu of the repository.
  3. Press CTRL-Space to see a filtered list of all Gerrit changes.
  4. Choose the change you are interested in.

You workspace now reflects the state of the selected change.



--Juergen.kissner.sap.com 14:48, 4 April 2012 (UTC)

Back to the top