| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 | # -*- mode:org -*-#+TITLE: Org maintainer tasks#+STARTUP: noindent#+OPTIONS: ^:nilThis document describes the tasks the Org-mode maintainer has to doand how they are performed.* Git workflowThe git repository has two branches:- master :: for current development.- maint :: for bug fixes against latest major or minor release.Bug fixes always go on =maint= then are merged on =master=.New features always go on =master=.* Releasing** Major releaseThe release number for main releases look like this: =9.1=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.When doing a /major release/, make sure all changes from the maintbranch are merged into the the master branch, then merge the masterbranch back into maint to synchronize the two.** Minor releaseThe release number for minor releases look like this: =9.1.7=Minor releases are small amends to main releases.  Usually they fixcritical bugs discovered in a main release.  Minor bugs are usuallynot fixed -- they will be adressed in the next main release.Only the fix to the bug is bundled into a release, without the maindevelopment work going on in the master branch.  Since the bug fixwill also be needed in the master branch, usually the fix is made inmaint then merged in master.** Tagging the releaseWhen doing a major and a minor release, after all necessary merging isdone, tag the _maint_ branch for the release with:  git tag -a release_9.1.7 -m "Adding release tag"and push tags with  git push --tagsWe also encourage you to sign release tags like this:  git tag -s release_9.1.7 -m "Adding release tag"** Uploading the release files from the orgmode.org serverLog on the orgmode.org server as the emacs user and cd to~/git/org-modeFrom there do  make release  make uploadto create the =.tar.gz= and =.zip= files, the documentation, and to uploadeverything at the right place.* Available Org's builds on the serverThere are two cron tasks on the server: one that builds the ELPApackages and one that builds =org-latest.tar.gz= and =org-latest.zip=.ELPA packages are built from the *maint* branch.  One ELPA packagecontains Org's core, another one called "org-plus-contrib" containsOrg and contributed libraries.=org-latest*= snapshots are built from the *master* branch.* Synchronization Org and upstream EmacsBelow it is described how Org is kept in sync with the upstream Emacs.** Backporting changes from upstream EmacsSometimes Emacs maintainers make changes to Org files.  The process ofpropagating the changes back to the Org repository is called/backporting/ for historical reasons.To find changes that need to be backported from the Emacs repository,the following =git= command, courtesy of [[http://permalink.gmane.org/gmane.emacs.devel/215861][Kyle Meyer]], can be used:#+begin_src shell  git log $rev..origin/emacs-25 -- lisp/org doc/misc/org.texi \    etc/refcards/orgcard.tex etc/ORG-NEWS etc/org \    etc/schema/od-manifest-schema-v1.2-os.rnc \    etc/schema/od-schema-v1.2-os.rnc#+end_srchere, =$rev= is the last commit from the =emacs-25= branch that wasbackported.  The should also be done for the =master= branch.There is also a [[http://git.savannah.gnu.org/cgit/emacs.git/atom/lisp/org/][feed]] to keep track of new changes in the =lisp/org=folder in the Emacs repository.** Updating the Org version in upstream EmacsNew releases of Org should be added to the [[https://git.savannah.gnu.org/cgit/emacs.git][Emacs repository]].Typically, Org can be synchronized by copying over files from the=emacs-sync= branch of the Org repository to the =master= branch of Emacsrepository.  The =emacs-sync= branch has a few extra changes comparedwith the =maint= branch.  If the Emacs maintainers are planning a newrelease of Emacs soon, it is possible that another branch should beused.If the new release of Org contains many changes, it may be useful touse a separate branch before merging, e.g. =scratch/org-mode-merge=.This branch can then be merged with the =master= branch, when everythinghas been tested.Please see [[http://git.savannah.gnu.org/cgit/emacs.git/tree/CONTRIBUTE][CONTRIBUTE]] in the Emacs repository for guidelines oncontributing to the Emacs repository.*** Where to files goThe following list shows where files in Org repository are copied toin the Emacs repository, folder by folder.**** =org-mode/doc=- =org.texi= :: Copy to =emacs/doc/misc=.  It may be necessary to replace,     ~@include org-version.inc~ with ~@set VERSION 9.0.9~ or similar.- =orgcard.tex= :: Copy to =emacs/etc/refcards=.  Make sure that     ~\def\orgversionnumber~ and ~\def\versionyear~ are up to date.**** =org-mode/etc=- =styles/*= :: Copy to =emacs/etc/org=.- =schema/*.rnc= :: Copy to =emacs/etc/schema=.- =schema/schemas.xml= :: Any new entries in this file should be added     to =emacs/etc/schema/schemas.xml=.- =ORG-NEWS= :: Copy to =emacs/etc=**** =org-mode/lisp=- Copy =*.el= files to =emacs/lisp/org=, except =org-loaddefs.el=!- You should create =org-version.el= in =emacs/lisp/org=.  The file is  created when you =make= Org.**** TODO =org-mode/testing=*** Update  =emacs/etc/NEWS=Whenever a new (major) version of Org is synchronized to the Emacsrepository, it should be mentioned in the NEWS file.* Updating the list of hooks/commands/options on WorgLoad the =mk/eldo.el= file then =M-x eldo-make-doc RET=.This will produce an org file with the documentation.Import this file into =worg/doc.org=, leaving the header untouched(except for the release number).Then commit and push the change on the =worg.git= repository.* Copyright assignmentsThe maintainer needs to keep track of copyright assignments.  Evenbetter, find a volunteer to do this.The assignment form is included in the repository as a file that youcan send to contributors: =request-assign-future.txt=The list of all contributors from who we have the papers is kept onWorg at https://orgmode.org/worg/org-contribute.html, so thatcommitters can check if a patch can go into the core.The assignment process does not allways go smoothly, and it hashappened several times that it gets stuck or forgotten at the FSF.The contact at the FSF for this is: mailto:copyright-clerk@fsf.orgEmails from the paper submitter have been ignored in the past, but anemail from me (Carsten) as the maintainer of Org mode has usuallyfixed such cases within a few days.
 |