README
author frostbane <frostbane@programmer.net>
Fri, 04 Mar 2016 09:38:40 +0900 (2016-03-04)
branchfeature/refactor
changeset 80 56034fb9ec0d
parent 77 af9913ddbb3d
child 84 f423f67d4560
permissions -rw-r--r--
close
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     1
Artemis
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     2
=======
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     3
73
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
     4
Artemis is a lightweight distributed issue tracking extension for
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
     5
Mercurial_.  Alpha-quality `git support`_ is recently available and
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
     6
is described in its own section below.
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     7
35
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
     8
Individual issues are stored in directories in an ``.issues`` subdirectory
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
     9
(overridable in a config file).  Each one is a Maildir_ and each one is assumed
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
    10
to have a single root message.  Various properties of an issue are stored in the
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
    11
headers of that message.
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    12
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    13
.. _Mercurial:      http://www.selenic.com/mercurial/
77
af9913ddbb3d Fix clashing links
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 76
diff changeset
    14
.. _`git support`:  GitSupport_
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    15
.. _Maildir:        http://en.wikipedia.org/wiki/Maildir
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    16
34
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    17
One can obtain Artemis by cloning its repository:
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    18
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    19
.. parsed-literal::
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    20
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    21
    hg clone http://hg.mrzv.org/Artemis/
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    22
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    23
or downloading the entire `repository as a tarball`_.
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    24
714f9414b009 Added clone and tarball links to README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 33
diff changeset
    25
.. _`repository as a tarball`:  http://hg.mrzv.org/Artemis/archive/tip.tar.gz
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    26
72
285b24804d97 Mention GitHub location in the README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 64
diff changeset
    27
A git mirror is `hosted on GitHub`_.
285b24804d97 Mention GitHub location in the README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 64
diff changeset
    28
285b24804d97 Mention GitHub location in the README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 64
diff changeset
    29
.. _`hosted on GitHub`: https://github.com/mrzv/artemis
285b24804d97 Mention GitHub location in the README
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 64
diff changeset
    30
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    31
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    32
Setup
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    33
-----
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    34
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    35
In the ``[extensions]`` section of your ``~/.hgrc`` add::
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
    36
60
c933fa2cd204 Moved everything into artemis/ subdirectory to be able to import termcolor.py
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 57
diff changeset
    37
    artemis = /path/to/Artemis/artemis
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    38
35
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
    39
Optionally, provide a section ``[artemis]``, and specify an alternative path for
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
    40
the issues subdirectory (instead of the default ``.issues``)::
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
    41
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
    42
    [artemis]
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
    43
    issues = _issues
2e7575352ef3 Added configuration option to provide an alternative path for the issues directory
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 34
diff changeset
    44
64
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
    45
Additionally, one can specify filters_ and output formats_.
61
c384fa42f8a2 Colors can be customized in the config (fixes #edb)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 60
diff changeset
    46
64
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
    47
.. _formats:     Format_
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    48
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    49
Example
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    50
-------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    51
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    52
Create an issue::
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    53
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    54
    # hg iadd
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    55
    ... enter some text in an editor ...
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
    56
    Added new issue 907ab57e04502afd
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    57
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    58
    # hg ilist
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    59
    907ab57e04502afd (  0) [new]: New issue
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    60
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    61
    # hg ishow 907
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    62
    ======================================================================
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    63
    From: ...
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    64
    Date: ...
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    65
    Subject: New issue
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    66
    State: new
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    67
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    68
    Detailed description.
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
    69
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    70
    ----------------------------------------------------------------------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    71
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    72
Add a comment to the issue::
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
    73
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    74
    # hg iadd 907
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    75
    ... enter the comment text
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    76
    ======================================================================
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    77
    From: ...
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    78
    [snip]
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    79
    Detailed description.
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
    80
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    81
    ----------------------------------------------------------------------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    82
    Comments:
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    83
      1: [dmitriy] Some comment
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    84
    ----------------------------------------------------------------------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    85
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    86
And a comment to the comment::
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    87
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    88
    # hg iadd 907 1
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    89
    ... enter the comment text ...
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    90
    ======================================================================
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    91
    From: ...
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    92
    [snip]
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    93
    Detailed description.
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
    94
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    95
    ----------------------------------------------------------------------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    96
    Comments:
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    97
      1: [dmitriy] Some comment
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    98
        2: [dmitriy] Comment on a comment
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    99
    ----------------------------------------------------------------------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   100
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   101
Close the issue::
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   102
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   103
    # hg iadd 907 -p state=resolved -p resolution=fixed -n
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   104
    ======================================================================
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   105
    From: ...
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   106
    [snip]
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   107
    Detailed description.
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
   108
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   109
    ----------------------------------------------------------------------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   110
    Comments:
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   111
      1: [dmitriy] Some comment
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   112
        2: [dmitriy] Comment on a comment
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   113
      3: [dmitriy] changed properties (state=resolved, resolution=fixed)
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   114
    ----------------------------------------------------------------------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   115
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   116
No more new issues, and one resolved issue::
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   117
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   118
    # hg ilist
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   119
    # hg ilist -a
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   120
    907ab57e04502afd (  3) [resolved=fixed]: New issue
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   121
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   122
The fact that issues are Maildirs, allows one to look at them in, for example,
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   123
``mutt`` with predictable results::
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   124
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   125
    mutt -Rf .issues/907ab57e04502afd
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   126
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   127
Commands
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   128
--------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   129
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   130
`iadd` ``[ID] [COMMENT]``
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   131
    Add an issue, or a comment to an existing issue or comment. The comment is
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   132
    recorded as a reply to the particular message. `iadd` is the only command
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   133
    that changes the state of the repository (by adding the new issue files to
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   134
    the list of tracked files or updating some of them), however, it does not
53
c379bed603c6 Fixed f09 (option to commit after iadd)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 50
diff changeset
   135
    perform an actual commit unless explicitly asked to do so.
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   136
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   137
    `-p`, `--property`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   138
        update a property of the issue ``ID``, e.g. ``-p state=resolved -p resolution=fixed``
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   139
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   140
    `-a`, `--attach`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   141
        attach a file to the message, e.g. ``-a filename1 -a filename2``
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   142
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   143
    `-n`, `--no-property-comment`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   144
        do not launch an editor to record a comment (useful if only changing
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   145
        properties)
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   146
50
10fa939a4a3e Fixed #fcd (timezone)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 49
diff changeset
   147
    `-m`, `--message`
49
248ec36cef5f Merged + added documentation for "iadd --message" and "ishow --mutt" + marked c76 as fixed
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 35
diff changeset
   148
        use ``text`` as an issue subject
248ec36cef5f Merged + added documentation for "iadd --message" and "ishow --mutt" + marked c76 as fixed
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 35
diff changeset
   149
53
c379bed603c6 Fixed f09 (option to commit after iadd)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 50
diff changeset
   150
    `-c`, `--commit`
c379bed603c6 Fixed f09 (option to commit after iadd)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 50
diff changeset
   151
        commit the issue after the addition (all changes to the issue will be
c379bed603c6 Fixed f09 (option to commit after iadd)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 50
diff changeset
   152
        committed)
c379bed603c6 Fixed f09 (option to commit after iadd)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 50
diff changeset
   153
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   154
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   155
`ilist`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   156
    List issues.
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   157
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   158
    `-a`, `--all`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   159
        list all issues (not just the `new` ones)
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   160
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   161
    `-p`, `--property`
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
   162
        list issues with specific property values, e.g.
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   163
        ``-p state=resolved -p category=documentation``;
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   164
        if no property value is provided (e.g. ``-p category``), lists all
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   165
        possible values for that property (among the issues that satisfy the
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   166
        rest of the criteria)
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   167
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
   168
    `-o`, `--order`
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
   169
        order of the issues; choices: "new" (date submitted), "latest" (date of
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
   170
        the most recent message)
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
   171
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   172
    `-d`, `--date`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   173
        restrict to issues matching the given date, e.g. ``-d ">1/1/2008"``
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   174
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   175
    `-f`, `--filter`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   176
        restrict to a predefined filter, see Filters_ below
57
6c388fe11dcc ilist: added --order to sort by date (fixes #82a)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 53
diff changeset
   177
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   178
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   179
`ishow` ``[ID] [COMMENT]``
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   180
    Show an issue or a comment.
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   181
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   182
    `-a`, `--all`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   183
        list all comments to an issue (i.e. not just a single message, and a
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   184
        thread of subjects of its replies)
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   185
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   186
    `-s`, `--skip`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   187
        in the output skip lines of the messages starting with the given
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   188
        substring, defaults to ``>``
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   189
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   190
    `-x`, `--extract`
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   191
        extract attachments (given their numbers)
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   192
49
248ec36cef5f Merged + added documentation for "iadd --message" and "ishow --mutt" + marked c76 as fixed
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 35
diff changeset
   193
    `--mutt`
248ec36cef5f Merged + added documentation for "iadd --message" and "ishow --mutt" + marked c76 as fixed
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 35
diff changeset
   194
        use ``mutt`` to show issue
248ec36cef5f Merged + added documentation for "iadd --message" and "ishow --mutt" + marked c76 as fixed
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 35
diff changeset
   195
33
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   196
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   197
Filters
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   198
-------
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   199
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   200
Artemis scans all files of the form ``.issues/.filter*``, and processes them as
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   201
config files. Section names become filter names, and the individual settings
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   202
become properties. For example the following::
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   203
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   204
    [olddoc]
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   205
    category=documentation
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   206
    state=resolved
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   207
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   208
placed in a file ``.issues/.filter`` creates a filter `olddoc` which can be
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   209
invoked with the `ilist` command::
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   210
4b1f56527f08 Added README + fixed a bug with non-existent filters
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
   211
    hg ilist -f olddoc
64
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   212
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   213
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   214
Format
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   215
------
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   216
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   217
One can specify the output format for the `ilist` command. The default looks
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   218
like::
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   219
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   220
    [artemis]
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   221
    format = %(id)s (%(len)3d) [%(state)s]: %(subject)s
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   222
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   223
Artemis passes a dictionary with the issue properties to the format string.
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   224
(Plus ``id`` contains the issue id, and ``len`` contains the number of replies.)
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   225
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   226
It's possible to specify different output formats depending on the properties of
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   227
the issue. The conditions are encoded in the config variable names as follows::
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   228
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   229
    format:state*resolved&resolution*fixed  = %(id)s (%(len)3d) [fixed]: %(Subject)s
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   230
    format:state*resolved                   = %(id)s (%(len)3d) [%(state)s=%(resolution)s]: %(Subject)s
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   231
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   232
The first rule matches issues with the ``state`` property set to ``resolved``
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   233
and ``resolution`` set to ``fixed``; it abridges the output. The secod rule
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   234
matches all the ``resolved`` issues (not matched by the first rule); it annotates
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   235
the issue's state with its ``resolution``.
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   236
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   237
Finally, the dictionary passed to the format string contains a subset of
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   238
`ANSI codes`_, so one could color the summary lines::
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   239
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   240
    format:state*new = %(red)s%(bold)s%(id)s (%(len)3d) [%(state)s]: %(Subject)s%(reset)s
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   241
4129876c8b86 Fixed #af5 (summary formats provided in the config file)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 62
diff changeset
   242
.. _`ANSI codes`:       http://en.wikipedia.org/wiki/ANSI_escape_code
73
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   243
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   244
77
af9913ddbb3d Fix clashing links
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 76
diff changeset
   245
.. _GitSupport:
af9913ddbb3d Fix clashing links
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 76
diff changeset
   246
73
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   247
Git
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   248
---
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   249
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   250
Artemis can now be used with git_.
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   251
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   252
This requires the `git-artemis` script to be in the executable path,
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   253
and the `artemis` module to be findable by python.  This can be done
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   254
by installing using the supplied `setup.py`.
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   255
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   256
Artemis commands are accessed from git like this::
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   257
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   258
    git artemis list
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   259
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   260
similarly for `show` or `add`.  Arguments and flags are exactly the
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   261
same as for the mercurial version.
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   262
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   263
It is not yet possible to specify formats via the `git config` command.
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   264
b78234a1bf04 Support for git.
John Kozak <jk@thameslighter.net>
parents: 72
diff changeset
   265
.. _git:      https://git-scm.com/