README_maintainer 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. # -*- mode:org -*-
  2. #+TITLE: Org maintainer tasks
  3. #+STARTUP: noindent
  4. This document describes the tasks the Org-mode maintainer has to do
  5. and how they are performed.
  6. * Git workflow
  7. The git repository has two branches:
  8. - master :: for current development.
  9. - maint :: for bug fixes against latest major or minor release.
  10. Bug fixes always go on =maint= then are merged on =master=.
  11. New features always go on =master=.
  12. * Releasing
  13. ** Major release
  14. The release number for main releases look like this: =7.13=
  15. Main releases are made whenever Org is in a state where the feature
  16. set is consistent and we feel that the features that are implemented
  17. is something we want to support in the future.
  18. A major release turns the current state of the master branch into a
  19. release.
  20. When doing a /major release/, make sure all changes from the maint
  21. branch are merged into the the master branch, then merge the master
  22. branch back into maint to synchronize the two.
  23. ** Minor release
  24. The release number for minor releases look like this: =7.13.1=
  25. Minor releases are small amends to main releases. Usually they fix
  26. critical bugs discovered in a main release. Minor bugs are usually
  27. not fixed -- they will be adressed in the next main release.
  28. Only the fix to the bug is bundled into a release, without the main
  29. development work going on in the master branch. Since the bug fix
  30. will also be needed in the master branch, usually the fix is made in
  31. maint then merged in master.
  32. ** Tagging the release
  33. When doing a major and a minor release, after all necessary merging is
  34. done, tag the _maint_ branch for the release with:
  35. git tag -a release_7.9.1 -m "Adding release tag"
  36. and push tags with
  37. git push --tags
  38. We also encourage you to sign release tags like this:
  39. git tag -s release_7.9.1 -m "Adding release tag"
  40. ** Uploading the release files from the orgmode.org server
  41. Log on the orgmode.org server as the emacs user and cd to
  42. ~/git/org-mode
  43. From there do
  44. make release
  45. make upload
  46. to create the .tar.gz and .zip files, the documentation, and to
  47. upload everything at the right place.
  48. * Available Org's builds on the server
  49. There are two cron tasks on the server: one that builds the ELPA
  50. packages and one that builds org-latest.tar.gz and org-latest.zip.
  51. ELPA packages are built from the *maint* branch. One ELPA package
  52. contains Org's core, another one called "org-plus-contrib" contains
  53. Org and contributed libraries.
  54. org-latest* snapshots are built from the *master* branch.
  55. * Synchonization with Emacs
  56. This is still a significant headache. Some hand work is needed here.
  57. Emacs uses bzr. A useful introduction to bzr for Emacs developers can
  58. be found [[http://www.emacswiki.org/emacs/BzrForEmacsDevs][here]]. While I see all the advantages this would have, I
  59. cannot bring myself to switch away from git for my day-to-day work,
  60. because I know git so well, and because git seems to me as being much
  61. more powerful, conceptionally simple (once you have [[http://newartisans.com/2008/04/git-from-the-bottom-up/][bent your head
  62. around it]]), and so much faster.
  63. So the way I have been doing things with Emacs is this:
  64. 1. I do not update the version in Emacs too often. Just once every
  65. few months - this is frequently enough for the Emacs release cycle.
  66. Care must be taken to get in a *new and stable* version shortly
  67. before Emacs goes into feature freeze and pretest, because that
  68. version is going to be in the wild for a long time.
  69. 2. I watch the Emacs diffs for changes made by the maintainers of
  70. Emacs in the org-mode files in Emacs. Any changes that come up
  71. there, I merge into the development version of Org-mode.
  72. Occasionally I do not do this, if I do not agree with a change.
  73. The changes go into Org /without/ a ChangeLog-like entry in the
  74. commit message. The reason for this is that we will later generate
  75. a ChangeLog file from our commit messages, and I do not want double
  76. ChangeLog entries in the Emacs ChangeLog file.
  77. 3. When I have made a release (usually I wait for the minor releases
  78. to stabilize), I *copy* org files into the Emacs repository. Yes,
  79. I do not merge, I copy. This has been the source of some problems
  80. in the past - Emacs developers are not happy when I accidentally
  81. overwrite changes they made. But I have not had the patience to
  82. work out a better mechanism, and I really dislike the idea that the
  83. version in Emacs starts diverging from my own.
  84. Careful: Copy /org.texi/ and /orgcard.tex/ into the right places,
  85. and also copy the lisp files with *two exceptions*: Do *not* copy
  86. /org-colview-xemacs.el/ and /org-loaddefs.el/. The former does not
  87. belong in Emacs. And the latter would actually be harmful because
  88. Emacs generates its own autoloads.
  89. 4. Generate the ChangeLog entries
  90. For this, I do in the org-mode git repository
  91. : mk/make_emacs_changelog release_7.02.05..release_7.03.02
  92. This will spit out ChangeLog entries (for the given commit range)
  93. that need to go into the ChangeLog files in Emacs. Org-mode
  94. contributes to 3 different ChangeLog files in Emacs:
  95. : lisp/org/ChangeLog (for lisp changes)
  96. : doc/misc/ChangeLog (for org.texi changes)
  97. : etc/ChangeLog (for refcard changes)
  98. When you run the =make_emacs_changelog= program, you will be
  99. prompted for a date in ISO format YYYY-MM-DD, this date will be
  100. used in the ChangeLog entries - Emacs developers want these dates
  101. to be the time when the change has been installed into Emacs, not
  102. the time when we made the change in our own repository. So all the
  103. ChangeLog entries will get the same date. You will also be
  104. prompted for the kind of ChangeLog you want to make, possible
  105. answers are =lisp=, =texi=, and =card=. The program will then
  106. select the correct entries for the specified ChangeLog file. If
  107. you don't like being prompted, you can give the date and type as
  108. second and third command line arguments to =make_emacs_changelog=,
  109. for example
  110. : mk/make_emacs_changelog release_7.02.05..release_7.03.02 2010-12-11 lisp
  111. These entries need to be added to the ChangeLog files in Emacs.
  112. You should, in the ChangeLog file, select the inserted region of
  113. new entries and do =M-x fill-region=, so that the entries are
  114. formatted correctly. I then do look through the entries quickly to
  115. make sure they are formatted properly, that the email addresses
  116. look right etc.
  117. 5. Commit the changes into the bzr repository and you are done. Emacs
  118. developers often look throught the commit and make minor changes -
  119. these need to be merged back into our own repo.
  120. * Updating the list of hooks/commands/options on Worg
  121. Load the =mk/eldo.el= file then =M-x eldo-make-doc RET=.
  122. This will produce an org file with the documentation.
  123. Import this file into =worg/doc.org=, leaving the header untouched
  124. (except for the release number).
  125. Then commit and push the change on the =worg.git= repository.
  126. * Copyright assignments
  127. The maintainer needs to keep track of copyright assignments.
  128. Even better, find a volunteer to do this.
  129. The assignment form is included in the repository as a file that
  130. you can send to contributors: =request-assign-future.txt=
  131. The list of all contributors from who we have the papers is kept on
  132. Worg at http://orgmode.org/worg/org-contribute.html, so that
  133. committers can check if a patch can go into the core.
  134. The assignment process does not allways go smoothly, and it has
  135. happened several times that it gets stuck or forgotten at the FSF.
  136. The contact at the FSF for this is: mailto:copyright-clerk@fsf.org
  137. Emails from the paper submitter have been ignored in the past, but
  138. an email from me (Carsten) as the maintainer of Org mode has usually
  139. fixed such cases within a few days.