Changes between Version 26 and Version 27 of WorkingGuideLines
- Timestamp:
- 01/03/16 13:20:41 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkingGuideLines
v26 v27 34 34 * documentation (doc/*) 35 35 * skins (misc/skins/*); except defailt.ini skin 36 * keymaps (misc/mc.keymap.*); except mc. keymap.default and mc.keymap.emacs36 * keymaps (misc/mc.keymap.*); except mc.default.keymap and mc.emacs.keymap 37 37 * editor's syntax color highlight files 38 38 … … 50 50 $ git add file.1 file.2 file.3 // add files to commit 51 51 $ git commit -s // commit changes 52 $ git -push -u origin 123_branch_name // pub branch52 $ git push -u origin 123_branch_name // pub branch 53 53 }}} 54 54 55 * Each branch should follow some easy naming rules: XYZ_<something_descriptive_here>. XYZ is here the ID of the ticket. (The patch is not directly applied to the parent branch as we would like to review it beforehand.56 * Each branch is created on the top of the other one. If this is a bugfix you should use stable branch, if not then master branch or branch where this bug (e.g for a bugfix create a branch on top of mc-4.6). Please create your branches upon a last master/another_parent_branch, it will simpl fy future merge process.55 * Each branch should follow some easy naming rules: XYZ_<something_descriptive_here>. XYZ is here the ID of the ticket. The patch is not directly applied to the parent branch as we would like to review it beforehand. 56 * Each branch is created on the top of the other one. If this is a bugfix you should use stable branch, if not then master branch or branch where this bug (e.g for a bugfix create a branch on top of mc-4.6). Please create your branches upon a last master/another_parent_branch, it will simplify future merge process. 57 57 58 58 * After creating the branch, you shouldn't forget to set "Branch state" field to the "on review" state if it ready for review, since now your ticket will pop up on [http://www.midnight-commander.org/report/9 this page] and can be reviewed by other developers. Also don't forget add link to changeset in ticket it should speed up review process. … … 68 68 As there are some guidelines for creating tickets, there are of course also some guidelines for reviewing tickets. 69 69 * Tickets which needs a review are located here: http://www.midnight-commander.org/report/9 70 * You can directly test the patch in git, simply checkout this branch and test and review it (or test merge with 71 current local master branch or another branch which should be merged for check to conflicts). 70 * You can directly test the patch in git, simply checkout this branch and test and review it (or test merge with current local master branch or another branch which should be merged for check to conflicts). 72 71 73 72 {{{ … … 81 80 $ git reset --hard origin/master 82 81 $ git pull 83 $ git merge --log --no-ff origin/123_branch_name82 $ git merge --log --no-ff --no-edit origin/123_branch_name 84 83 $ <build and test> 85 84 }}} … … 87 86 * This should be reviewed when looking at a patch: 88 87 * is the patch straightforward or a somehow hackish fix for an issue? 89 * is the patch looking well? (see CodingGuideLines)88 * is the patch looking well? (see [wiki:Hacking Coding Guidelines]) 90 89 * is the patch doing what it should? 91 90 * the patch mustn't introduce new bugs! … … 122 121 Merge process: 123 122 {{{ 124 $ git merge --log --no-ff 123_branch_name // merge "123_branch_name" to "master"123 $ git merge --log --no-ff --no-edit 123_branch_name // merge "123_branch_name" to "master" 125 124 }}} 126 --log option adds the merged patches list to the commit. --no-ff option allows create the merge commit in case where branch isn't child branch for current head, it should simplify understanding commit relation (use --no-ff option even you have one commit in branch). 125 --log option adds the merged patches list to the commit. --no-ff option allows create the merge commit in case where branch isn't child branch for current head, it should simplify understanding commit relation (use --no-ff option even you have one commit in branch). --no-edit option is used to accept the auto-generated message. 127 126 128 127 Now you ready to update master branch on server: … … 151 150 If you are unfamiliar with git, please have a look before working in our GitGuideLines. 152 151 153 Release process is described [wiki:Release Process here].152 Release process is described [wiki:ReleaseGuidelines here]. 154 153 155 154 {{{#!comment