c{0: 0 (((1 channel-address)) <- ((init-channel)) ((3 literal))) -- nil c{0: 1 (((2 integer)) <- ((copy)) ((34 literal))) -- nil c{0: 2 (((3 tagged-value)) <- ((save-type)) ((2 integer))) -- nil c{0: 3 (((1 channel-address) (deref)) <- ((write)) ((1 channel-address)) ((3 tagged-value))) -- nil c{0: 4 (((5 tagged-value)) ((1 channel-address) (deref)) <- ((read)) ((1 channel-address))) -- nil c{0: 5 (((7 integer)) <- ((maybe-coerce)) ((5 tagged-value)) ((integer literal))) -- nil c{0: 6 (((8 integer)) <- ((get)) ((1 channel-address) (deref)) ((first-full offset))) -- nil c{0: 7 (((9 integer)) <- ((get)) ((1 channel-address) (deref)) ((first-free offset))) -- nil c{1: 0 ✓ (((1 channel-address)) <- ((init-channel)) ((3 literal))) c{1: 1 ✓ (((2 integer)) <- ((copy)) ((34 literal))) c{1: 2 ✓ (((3 tagged-value)) <- ((save-type)) ((2 integer))) c{1: 3 ✓ (((1 channel-address) (deref)) <- ((write)) ((1 channel-address)) ((3 tagged-value))) c{1: 4 ✓ (((5 tagged-value)) ((1 channel-address) (deref)) <- ((read)) ((1 channel-address))) c{1: 5 ✓ (((7 integer)) <- ((maybe-coerce)) ((5 tagged-value)) ((integer literal))) c{1: 6 ✓ (((8 integer)) <- ((get)) ((1 channel-address) (deref)) ((first-full offset))) c{1: 7 ✓ (((9 integer)) <- ((get)) ((1 channel-address) (deref)) ((first-free offset))) cn0: convert-names in main cn0: (((1 channel-address)) <- ((init-channel)) ((3 literal))) nil nil cn0: checking arg ((3 literal)) cn0: checking oarg ((1 channel-address)) maybe-add: ((1 channel-address)) cn0: (((2 integer)) <- ((copy)) ((34 literal))) nil nil cn0: checking arg ((34 literal)) cn0: checking oarg ((2 integer)) maybe-add: ((2 integer)) cn0: (((3 tagged-value)) <- ((save-type)) ((2 integer))) nil nil cn0: checking arg ((2 integer)) maybe-add: ((2 integer)) cn0: checking oarg ((3 tagged-value)) maybe-add: ((3 tagged-value)) cn0: (((1 channel-address) (deref)) <- ((write)) ((1 channel-address)) ((3 tagged-value))) nil nil cn0: checking arg ((1 channel-address)) maybe-add: ((1 channel-address)) cn0: checking arg ((3 tagged-value)) maybe-add: ((3 tagged-value)) cn0: checking oarg ((1 channel-address) (deref)) maybe-add: ((1 channel-address) (deref)) cn0: (((5 tagged-value)) ((1 channel-address) (deref)) <- ((read)) ((1 channel-address))) nil nil cn0: checking arg ((1 channel-address)) maybe-add: ((1 channel-address)) cn0: checking oarg ((5 tagged-value)) maybe-add: ((5 tagged-value)) cn0: checking oarg ((1 channel-address) (deref)) maybe-add: ((1 channel-address) (deref)) cn0: (((7 integer)) <- ((maybe-coerce)) ((5 tagged-value)) ((integer literal))) nil nil cn0: checking arg ((5 tagged-value)) maybe-add: ((5 tagged-value)) cn0: checking arg ((integer literal)) cn0: checking oarg ((7 integer)) maybe-add: ((7 integer)) cn0: (((8 integer)) <- ((get)) ((1 channel-address) (deref)) ((first-full offset))) nil nil cn0: field-access first-full in 1channel-addressderef of type channel cn0: new field; computing location cn0: field location 0 cn0: checking arg ((1 channel-address) (deref)) maybe-add: ((1 channel-address) (deref)) cn0: checking arg ((first-full offset)) cn0: checking oarg ((8 integer)) maybe-add: ((8 integer)) cn0: (((9 integer)) <- ((get)) ((1 channel-address) (deref)) ((first-free offset))) ((first-full 0)) ((first-full t)) cn0: field-access first-free in 1channel-addressderef of type channel cn0: new field; computing location cn0: field location 1 cn0: checking arg ((1 channel-address) (deref)) maybe-add: ((1 channel-address) (deref)) cn0: checking arg ((first-free offset)) cn0: checking oarg ((9 integer)) maybe-add: ((9 integer)) cn1: (((1 channel-address)) <- ((init-channel)) ((3 literal))) cn1: (((2 integer)) <- ((copy)) ((34 literal))) cn1: (((3 tagged-value)) <- ((save-type)) ((2 integer))) cn1: (((1 channel-address) (deref)) <- ((write)) ((1 channel-address)) ((3 tagged-value))) cn1: (((5 tagged-value)) ((1 channel-address) (deref)) <- ((read)) ((1 channel-address))) cn1: (((7 integer)) <- ((maybe-coerce)) ((5 tagged-value)) ((integer literal))) cn1: (((8 integer)) <- ((get)) ((1 channel-address) (deref)) ((0 offset))) cn1: (((9 integer)) <- ((get)) ((1 channel-address) (deref)) ((1 offset))) schedule: main run: main 0: (((1 channel-address)) <- ((init-channel)) ((3 literal))) run: init-channel/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal))) run: init-channel/main 0: 1000 => ((default-space space-address)) run: init-channel/main 1: (((1 channel-address)) <- ((new)) ((channel literal))) run: init-channel/main 1: 1031 => ((1 channel-address)) mem: ((1 channel-address)): 1002 <= 1031 run: init-channel/main 2: (((2 integer-address)) <- ((get-address)) ((1 channel-address) (deref)) ((0 offset))) run: init-channel/main 2: 1031 => ((2 integer-address)) mem: ((2 integer-address)): 1003 <= 1031 run: init-channel/main 3: (((2 integer-address) (deref)) <- ((copy)) ((0 literal))) run: init-channel/main 3: 0 => ((2 integer-address) (deref)) mem: ((2 integer-address) (deref)): 1031 <= 0 run: init-channel/main 4: (((3 integer-address)) <- ((get-address)) ((1 channel-address) (deref)) ((1 offset))) run: init-channel/main 4: 1032 => ((3 integer-address)) mem: ((3 integer-address)): 1004 <= 1032 run: init-channel/main 5: (((3 integer-address) (deref)) <- ((copy)) ((0 literal))) run: init-channel/main 5: 0 => ((3 integer-address) (deref)) mem: ((3 integer-address) (deref)): 1032 <= 0 run: init-channel/main 6: (((4 integer)) <- ((next-input))) arg: nil 0 (3) run: init-channel/main 6: 3 =
Prepare the "stable" branch
---------------------------
Before you can do anything else, you need to decide what should be included in
the new version.

**Bugfix releases** bump the third number of the version, e.g. 1.9.0 -> 1.9.1.
They may include bugfix commits that you `git cherry-pick`ed from the master
branch into the stable branch, or you can just do a fast-forward merge of
master into stable, if there were only bugfix commits since the last major
version.  You can also add minor new features that are very likely not causing
any bugs.  However, there should be absolutely **no** backward-incompatible
changes, like:

- renamed or removed settings, commands or python functions
- renamed, removed or reordered function arguments
- change in syntax of configuration files or in API of configuration scripts

New settings are okay, just make sure a sane default value is defined.

**Major releases** bump the second number of the version, e.g. 1.9.2 -> 1.10.0
and are necessary if you introduce any breaking changes, like the ones
mentioned in the list above.

Test everything
----------------
* [ ] `make test`
* [ ] `./ranger.py [--clean]`
* [ ] `ranger/ext/rifle.py`
* [ ] `make install`

Make a release commit
---------------------
* [ ] Update the number in the `README`
* [ ] Update `__version__` and `VERSION` in `ranger/__init__.py`
* [ ] Update `__version__` in `ranger/ext/rifle.py`
* [ ] `make man`
* [ ] Write changelog entry
* [ ] Think of a witty commit message
* [ ] Commit
* [ ] Tag the signed release with `git tag -a <commit-id>`, using the same
      commit message as annotation
* [ ] Push release and tag

Make snapshot and test again
----------------------------
* [ ] Build `.tar.gz` with `make snapshot`
* [ ] `make`
* [ ] `make install`
* [ ] Test the snapshot one last time

Update the website
------------------
* [ ] Add the new version as `ranger-stable.tar.gz`
* [ ] Add the new version as `ranger-X.Y.Z.tar.gz`
* [ ] Update both signatures `gpg --local-user 0x00FB5CDF --sign --detach-sign <file>`
* [ ] Update the man page
    * [ ] run `make manhtml` in ranger's repository
    * [ ] copy the generated `doc/ranger.1.html` to the `ranger.github.io` repository
* [ ] Rebuild the website, see `README.md` in https://github.com/ranger/ranger.github.io
* [ ] Commit & push the website

Make a PyPI release
-------------------
* [ ] `git clean --force -d -x`
* [ ] `SETUPTOOLS_USE=1 python setup.py sdist`
* [ ] `gpg --local-user 0x00000000 --detach-sign --armor dist/*`
* [ ] `twine upload dist/*`

Announce the update
-------------------
* [ ] To the mailing list
* [ ] In the arch linux forum

Change back to before
---------------------
* [ ] Change `VERSION` in `ranger/__init__.py` back to `master`
(add)) ((4 integer-address) (deref)) ((1 literal))) mem: ((4 integer-address) (deref)) => 0 run: read/main 9: 1 => ((4 integer-address) (deref)) mem: ((4 integer-address) (deref)): 1031 <= 1 run: read/main 10: (((8 integer)) <- ((length)) ((5 tagged-value-array-address) (deref))) array-len: ((5 tagged-value-array-address) (deref)) mem: ((1034 integer) (raw)) => 4 run: read/main 10: 4 => ((8 integer)) mem: ((8 integer)): 1145 <= 4 run: read/main 11: (((9 boolean)) <- ((less-than)) ((4 integer-address) (deref)) ((8 integer))) mem: ((4 integer-address) (deref)) => 1 mem: ((8 integer)) => 4 run: read/main 11: t => ((9 boolean)) mem: ((9 boolean)): 1146 <= t run: read/main 12: (((jump-if)) ((9 boolean)) ((1 offset))) mem: ((9 boolean)) => t run: read/main 14: (((reply)) ((6 tagged-value)) ((1 channel-address) (deref) (same-as-arg 0))) mem: ((6 tagged-value)) => #(tagged record (integer 34 . nil)) mem: ((1 channel-address) (deref) (same-as-arg 0)) => #(tagged record (1 1 1034 . nil)) run: main 4: #(tagged record (integer 34 . nil)) => ((5 tagged-value)) mem: ((5 tagged-value)): 5 <= integer mem: ((5 tagged-value)): 6 <= 34 run: main 4: #(tagged record (1 1 1034 . nil)) => ((1 channel-address) (deref)) mem: ((1 channel-address) (deref)): 1031 <= 1 mem: ((1 channel-address) (deref)): 1032 <= 1 mem: ((1 channel-address) (deref)): 1033 <= 1034 run: main 5: (((7 integer)) <- ((maybe-coerce)) ((5 tagged-value)) ((integer literal))) mem: ((5 tagged-value)) => #(tagged record (integer 34 . nil)) run: maybe-coerce/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal))) run: maybe-coerce/main 0: 1198 => ((default-space space-address)) run: maybe-coerce/main 1: (((1 tagged-value-address)) <- ((new)) ((tagged-value literal))) run: maybe-coerce/main 1: 1229 => ((1 tagged-value-address)) mem: ((1 tagged-value-address)): 1200 <= 1229 run: maybe-coerce/main 2: (((1 tagged-value-address) (deref)) <- ((next-input))) arg: nil 0 (#(tagged record (integer 34 . nil)) integer) run: maybe-coerce/main 2: #(tagged record (integer 34 . nil)) => ((1 tagged-value-address) (deref)) mem: ((1 tagged-value-address) (deref)): 1229 <= integer mem: ((1 tagged-value-address) (deref)): 1230 <= 34 run: maybe-coerce/main 3: (((2 type)) <- ((next-input))) arg: nil 1 (#(tagged record (integer 34 . nil)) integer) run: maybe-coerce/main 3: integer => ((2 type)) mem: ((2 type)): 1201 <= integer run: maybe-coerce/main 4: (((3 type)) <- ((get)) ((1 tagged-value-address) (deref)) ((0 offset))) mem: ((1229 type) (raw)) => integer run: maybe-coerce/main 4: integer => ((3 type)) mem: ((3 type)): 1202 <= integer run: maybe-coerce/main 5: (((4 boolean)) <- ((equal)) ((3 type)) ((2 type))) mem: ((3 type)) => integer mem: ((2 type)) => integer run: maybe-coerce/main 5: t => ((4 boolean)) mem: ((4 boolean)): 1203 <= t run: maybe-coerce/main 6: (((jump-if)) ((4 boolean)) ((1 offset))) mem: ((4 boolean)) => t run: maybe-coerce/main 8: (((5 location)) <- ((get)) ((1 tagged-value-address) (deref)) ((1 offset))) mem: ((1230 location) (raw)) => 34 run: maybe-coerce/main 8: 34 => ((5 location)) mem: ((5 location)): 1204 <= 34 run: maybe-coerce/main 9: (((reply)) ((5 location)) ((4 boolean))) mem: ((5 location)) => 34 mem: ((4 boolean)) => t run: main 5: 34 => ((7 integer)) mem: ((7 integer)): 7 <= 34 run: main 6: (((8 integer)) <- ((get)) ((1 channel-address) (deref)) ((0 offset))) mem: ((1031 integer) (raw)) => 1 run: main 6: 1 => ((8 integer)) mem: ((8 integer)): 8 <= 1 run: main 7: (((9 integer)) <- ((get)) ((1 channel-address) (deref)) ((1 offset))) mem: ((1032 integer) (raw)) => 1 run: main 7: 1 => ((9 integer)) mem: ((9 integer)): 9 <= 1 schedule: done with routine nil