| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 | # -*- mode:org -*-#+title: Maintainer tasks#+startup: noindentThis document describes the tasks the Org-mode maintainer has to doand how they are performed.* Working with patchworkJohn Wiegley is running a patchwork server that looks at theemacs-orgmode mailing list and extracts patches.  The maintainer andhis helpers should work through such patches, give feedback on themand apply the ones which are good and done.  A task for the maintaineris to every now and then try to get old stuff out of that list, byasking some helpers to investigate the patch, by rejecting oraccepting it.I have found that the best workflow for this is using the pw script byNate Case, with the modifications for Org-mode made by John Wiegleyand Carsten Dominik.  The correct version of this script that shouldbe used with Org mode is distributed in the =utils/= directory of theOrg mode distribution.  Here is the basic workflow for this.** Access to the patchwork serverIf you want to work on patchwork patches, you need write access at thepatchwork server.  You need to contact John Wiegley to get thisaccess.There is a web interface to look at the patches and to change thestatus of patches.  This interface is self-explanatory.  There is alsoa command line script which can be very convenient to use.** Testing patchesTo start testing a patch, first assign it to yourself: pw update -s "Under Review" -d DELEGATE-NAME NNNwhere =NNN= is a patch number and =DELEGATE-NAME= is your user name onthe patchwork server.The get the patch into a branch:: pw branch NNNThis will create a local topic branch in your git repository with thename =t/patchNNN=.  You will also be switched to the branch so thatyou can immediately start testing it.  Quite often small amends needto be made, or documentation has to be added.  Also, many contributorsdo not yet provide the proper ChangeLog-like entries in the commitmessage for the patch.  As a maintainer, you have two options here.Either ask the contributor to make the changes and resubmit the patch,or fix it yourself.  In principle, asking to contributor to change thepatch until it is complete is the best route, because it will educatethe contributor and minimize the work for the maintainer.  However,sometimes it can be less hassle to fix things directly and commit thechanges to the same branch =t/patchNNN=.If you ask the contributor to make the changes, the patch should bemarked on the patchwork server as "changes requested".: pw update -s "Changes Requested" -m "What to change" NNNThis will send an email to the contributor and the mailing list with arequest for changes.  The =-m= message should not be more than onesentence and describe the requested changes.  If you need to explainin more detail, write a separate email to the contributor.When a new version of the patch arrives, you mark the old one assuperseded: pw update -s "Superseded" NNNand start working at the new one.** Merging a final patchOnce the patch has been iterated and is final (including theChangeLog-like entries in the commit message), it should be merged.The assumption here is that the final version of the patch is given bythe HEAD state in the branch =t/patchNNN=.  To merge, do this:: pw merge -m "maintainer comment" NNNThis will merge the patch into master, switch back to master and sendan email to both contributor and mailing list stating that this changehas been accepted, along with the comment given in the =-m= message.At some point you might then want to remove the topic branch: git branch -d t/patchNNN* Releases** Main releasesThe release number for main releases look like this:  =7.13=Main releases are made whenever Org is in a state where the featureset is consistent and we feel that the features that are implementedis something we want to support in the future.A major release turns the current state of the master branch into arelease.  The release process is a single make command:: make release TAG=7.13Before issuing this command, you should make sure that everythingduring the process will work right, you can do so by running: make testrelease TAG=7.13When this fails, make sure to clean up.  =git reset --hard= ifnecessary, and check if there are unwanted files, directories, orbranches left over from the testing.** Minor releasesThe release number for minor releases look like this:  =7.13.01=Minor releases are small amends to main releases.  Usually they fixcritical bugs discovered in a main release.  Minor bugs are notfixed - they will be adressed in the next main release.  Only the fixto the bug is bundled into a release, without the main developmentwork going on in the master branch.  Since the bug fix will also beneeded in the master branch, usually the fix is made in master andthen cherry-picked into maint.  When this is done, a release is madefrom maint with this command:: make fixrelease TAG=7.13.01** Updating release files on orgmode.org serverAs of 2011-01-15, these directives of the Makefile are meant to beused /from orgmode.org server/ and will copy the release files to thewebserver directory.- ~$ make makerelease :: creates a =RELEASE/= directory containing     manuals and release files (=org.tar.gz=, =org.zip=, etc.)- ~$ make sync_release :: copy the content of =RELEASE/= to the right     location on the server- ~$ make sync_manuals :: copy the manuals from =doc/= to the right     location on the server- ~$ make relup :: call the three directives described above.** Between releasesWhile working on master between releases, I used to use something like7.02trans as the version string.  I no longer do this.  =M-xorg-version= will spit ut complete version infor related to git, withthe nearest commit and tag.  I you ever need to set a special versionnumber, use this:: utils/set_version 7.02transand commit the result.  Note that the above command does not changethe version string in the file from which Org's homepage is generated.To change that as well, you would use a =--all= flag.  To change onlythis file, use =--only=.* Synchonization with EmacsThis is still a significant headache.  Some hand work is needed here.Emacs uses bzr.  A useful introduction to bzr for Emacs developers canbe found [[http://www.emacswiki.org/emacs/BzrForEmacsDevs][here]].  While I see all the advantages this would have, Icannot bring myself to switch away from git for my day-to-day work,because I know git so well, and because git seems to me as being muchmore powerful, conceptionally simple (once you have [[http://newartisans.com/2008/04/git-from-the-bottom-up/][bent your headaround it]]), and so much faster.So the way I have been doing things with Emacs is this:1. I do not update the version in Emacs too often.  Just once every   few months - this is frequently enough for the Emacs release cycle.   Care must be taken to get in a *new and stable* version shortly   before Emacs goes into feature freeze and pretest, because that   version is going to be in the wild for a long time.2. I watch the Emacs diffs for changes made by the maintainers of   Emacs in the org-mode files in Emacs.  Any changes that come up   there, I merge into the development version of Org-mode.   Occasionally I do not do this, if I do not agree with a change.   The changes go into Org /without/ a ChangeLog-like entry in the   commit message.  The reason for this is that we will later generate   a ChangeLog file from our commit messages, and I do not want double   ChangeLog entries in the Emacs ChangeLog file.3. When I have made a release (usually I wait for the minor releases   to stabilize), I *copy* org files into the Emacs repository.  Yes,   I do not merge, I copy.  This has been the source of some problems   in the past - Emacs developers are not happy when I accidentally   overwrite changes they made.  But I have not had the patience to   work out a better mechanism, and I really dislike the idea that the   version in Emacs starts diverging from my own.   Careful: Copy /org.texi/ and /orgcard.tex/ into the right places,   and also copy the lisp files with *two exceptions*: Do *not* copy   /org-colview-xemacs.el/ and /org-install.el/.  The former does not   belong in Emacs.  And the latter would actually be harmful because   Emacs generates its own autoloads.  The Emacs distribution contains   an empty /org-install.el/, so that users can have =(require   'org-install)= in .emacs with no ill effects.  So if you were to   copy /org-install.el/, you would overwrite that empty placeholder   file.4. Generate the ChangeLog entries   For this, I do in the org-mode git repository   : utils/make_emacs_changelog release_7.02.05..release_7.03.02   This will spit out ChangeLog entries (for the given commit range)   that need to go into the ChangeLog files in Emacs.  Org-mode   contributes to 3 different ChangeLog files in Emacs:   : lisp/org/ChangeLog    (for lisp changes)   : doc/misc/ChangeLog    (for org.texi changes)   : etc/ChangeLog         (for refcard changes)   When you run the =make_emacs_changelog= program, you will be   prompted for a date in ISO format YYYY-MM-DD, this date will be   used in the ChangeLog entries - Emacs developers want these dates   to be the time when the change has been installed into Emacs, not   the time when we made the change in our own repository.  So all the   ChangeLog entries will get the same date.  You will also be   prompted for the kind of ChangeLog you want to make, possible   answers are =lisp=, =texi=, and =card=.  The program will then   select the correct entries for the specified ChangeLog file.  If   you don't like being prompted, you can give the date and type as   second and third command line arguments to =make_emacs_changelog=,   for example   : utils/make_emacs_changelog release_7.02.05..release_7.03.02 2010-12-11 lisp   These entries need to be added to the ChangeLog files in Emacs.   You should, in the ChangeLog file, select the inserted region of   new entries and do =M-x fill-region=, so that the entries are   formatted correctly.  I then do look through the entries quickly to   make sure they are formatted properly, that the email addresses   look right etc.5. Commit the changes into the bzr repository and you are done.  Emacs   developers often look throught the commit and make minor changes -   these need to be merged back into our own repo.* Updating the list of hooks on Worg  The file /org-configs/org-hooks.org/ contains a list of all hooks in  Org.  This list has to be updated after hooks have been added or  removed.  The perl script /utils/list-hooks.pl/ creates the  entire section "Hooks and Function variables", including its  level-one headline.  I guess babel code could be used to update this  automatically, but I have not implemented this - I have been doing  it by hand every few months.* Copyright assignments  The maintainer needs to keep track of copyright assignments.  Even  better, find a volunteer to do this.    The list of all contributors from who we have the papers is kept on  Worg at http://orgmode.org/worg/org-contribute.php, so that  committers can check if a patch can go into the core.  The assignment process does not allways go smoothly, and it has  happened several times that it gets stuck or forgotten at the FSF.  The contact at the FSF for this is: copyright-clerk@fsf.org   Emails from the paper submitter have been ignored in the past, but  an email from me (Carsten) as the maintainer of Org mode has usually  fixed such cases within a few days.
 |