Project

General

Profile

Dev » History » Version 2

Jules Waldhart, 2015-04-09 13:51

1 1 Jules Waldhart
h1. Instructions for developers
2
3
The new main repo for move3d is here now (at least for us). Project admins are in charge of keeping it up to date with the official move3d repos (on trac.laas.fr). We will work with a pull request system, and try to involve everyone in the reviews, to ensure the best possible quality for each part and aspect of move3d.
4
5
So, where to start? You will have to setup your workspace to use these repos instead of the trac.laas.fr ones, and use the workflow required for this project management system.
6
7
h2. Workspace set-up
8
9
h3. Change remote
10
11
Short version: in git, a remote is a server.
12
You will change trac.laas.fr to this repo on your local copy using git commands. So, cd to your move3d(planner/hri/studio) local copy and do the following:
13
<pre>
14
git remote set-url origin ssh://git@redmine.laas.fr/laas/users/jwaldart/move3d/[planners, hri, libmove3d, studio].git
15
</pre>
16
17
18
@origin@ is the default name usually given to remotes, esp. when using @git clone@. Yours is maybe different, use @git remote show@ to check the list of remotes and @git remote show <name>@ to see details.
19
20
You may want to add a remote instead of changing origin, use the @git remote add@ command instead:
21
<pre>
22
git remote add redmine ssh://git@redmine.laas.fr/laas/users/jwaldart/move3d/...
23
</pre>
24
25
h3. Add remote for pushing
26
27
You first need to create your own remote repo, where you will push your changes, and from which project maintainers will pull when you requet it. You then add it to the remotes:
28
<pre>
29
git remote add perso <url>
30
</pre>
31
32
You will push to it using @git push perso <branch>@ where @<branch>@ is the branch you want to push *to* (usually master).
33
34
You will pull form the main repo: @git pull origin <branch>@
35
36
37
*TODO*: how to set default pull/push destinations.
38 2 Jules Waldhart
39
h2. Workflow
40
41
h3. Pull-request
42
43
Once you modifications are done and you are ready to publish your work, first do some checks, be sure it successfully builds, and push it to your personal repository.
44
Then go to the redmine page of the main project and click the "new issue" tab ("Nouvelle demande" (fr)). Create a new pull-request and fill the form. Do not forget to specify the url of your personal repo (either hosted by redmine or on any machine at LAAS for instance) and the branch you want the maintainer to pull from.
45
46
Specify the assignee, and add any person you think can be interested by your work.
47
48
h3. Review