README_maintainer 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # -*- mode:org -*-
  2. #+title: Maintainer tasks
  3. #+startup: indent
  4. This document describes the tasks the Org-mode maintainer has to do
  5. and how they are performed.
  6. * Releases
  7. ** Main releases
  8. The release number for main releases look like this: =7.13=
  9. Main releases are made whenever Org is in a state where the feature
  10. set is consistent and we feel that the features that are implemented
  11. is something we want to support in the future.
  12. A major release turns the current state of the master branch into a
  13. release. The release process is a single make command:
  14. : make release TAG=7.13
  15. Before issuing this command, you should make sure that everything
  16. during the process will work right, you can do so my running
  17. : make testrelease TAG=7.13
  18. When this fails, make sure to clean up. =git reset --hard= if
  19. necessary, and check if there are unwanted files, directories, or
  20. branches left over from the testing.
  21. ** Minor releases
  22. The release number for minor releases look like this: =7.13.01=
  23. Minor releases are small amends to main releases. Usually they fix
  24. bugs discovered in a main release. Only the fix to the bug is
  25. bundled into a release, without the main development work going on in
  26. the master branch. Since the big fix will also be needed in the
  27. master branch, usually the fix is made in master and then
  28. cherry-picked into maint. When this is done, a release is made from
  29. maint with this command:
  30. : make fixrelease TAG=7.13.01
  31. ** Between releases
  32. While working on master between releases, I use something like
  33. 7.02trans as the version string. To set this version string in all
  34. relevant files, use
  35. : UTILITIES/set_version 7.02trans
  36. and commit the result. Note that the above command does not change
  37. the version string in the file from which Org's homepage is
  38. generated. To change that as well, you would use a =--all= flag. TO
  39. change only this file, use =--only=.
  40. * Synchonization with Emacs
  41. This is still a significant headache. Some hand work is needed here.
  42. Emacs uses bzr, and while I see all the advantages thiswould have, I
  43. cannot bring myself to switch away from git for my day-to-day work.
  44. So the way I have been doing things with Emacs is this:
  45. 1. I do not update the version in Emacs too often. Just once every
  46. few month - this is frequently enough for the Emacs release cycle.
  47. 2. I watch the Emacs diffs for changes made by the maintainers of
  48. Emacs in the org-mode files in Emacs. Any changes that come up
  49. there, I merge into the development version of Org-mode.
  50. Occasionally I do not do this, if I do not agree with a change.
  51. The changes go into Org /without/ a ChangeLog-like entry in the
  52. commit message. The reason for this is that we will later generate
  53. a ChangeLog file from our commit messages, and I do not want double
  54. ChangeLog entries in the Emacs ChangeLog file.
  55. 3. When I have made a release (usually I wait for the minor releases
  56. to stabilize), I *copy* org files into the Emacs repository. Yes,
  57. I do not merge, I copy. This has been the source of some problems
  58. in the past - but I have not had the patience to work out a better
  59. mechanism, and I really dislike the idea that the version in Emacs
  60. starts diverging from my own.
  61. Careful: Copy /org.texi/ and /orgcard.tex/ into the right places,
  62. and also copy the lisp files with *two exceptions*: Do *not* copy
  63. /org-colview-xemacs.el/ and /org-install.el/. The former does not
  64. belong in Emacs. And the latter would actually be harmful because
  65. Emacs generates its own autoloads. The Emacs distribution contains
  66. an empty org-install.el, so that users can have =(require
  67. 'org-install)= in .emacs with no ill effects. So if you were to
  68. copy org-install.el, you would overwrite that empty placeholder
  69. file.
  70. 4. Generate the ChangeLog entries
  71. For this, I do in the org-mode git repository
  72. : UTILITIES/make_emacs_changelog release_7.02.05..release_7.03.02
  73. This will spit out ChangeLog entries (for the given commit range)
  74. that need to go into the ChangeLog files in Emacs. Org-mode
  75. contributes to 3 different ChangeLog files in Emacs:
  76. : lisp/org/ChangeLog (for lisp changes)
  77. : doc/misc/ChangeLog (for org.texi changes)
  78. : etc/ChangeLog (for refcard changes)
  79. When you run the =make_emacs_changelog= program, you will be
  80. prompted for a date in ISO format YYYY-MM-DD, this date will be
  81. used in the ChangeLog entries - Emacs wants these dates to be the
  82. time when the change has been installed into Emacs, not the time
  83. when we made the change in our own repository. You will also be
  84. prompted for the kind of ChangeLog you want to make, possible
  85. answers are =lisp=, =texi=, and =card=. The program will then
  86. select the correct entries for the specified ChangeLog file. If
  87. you don't like being prompted, you can give the date and type as
  88. second and third command line arguments to =make_emacs_changelog=.
  89. These entries need to be added to the ChangeLog files in Emacs.
  90. You should, in the ChangeLog file, select the inserted region of
  91. new entries and do =M-x fill-region=, so that the entries are
  92. formatted correctly. I then do look through the entries quickly to
  93. make sure they are formatted properly, that the email addresses
  94. look right etc.
  95. 5. Commit the changes into the bzr repository and you are done. Emacs
  96. developers often look throught the commit and make minor changes -
  97. these need to be merged back into our own repo.