<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/devel, branch 0.19_rc2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.19_rc2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.19_rc2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2014-11-02T18:46:17Z</updated>
<entry>
<title>devel: man-to-mdwn.pl: add GPLv3+ notice to manpages.mdwn</title>
<updated>2014-11-02T18:46:17Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2014-11-01T10:47:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=34d2c62b8220ea96902e6776251f82058c4a5bdc'/>
<id>urn:sha1:34d2c62b8220ea96902e6776251f82058c4a5bdc</id>
<content type='text'>
Make the generated head manual page (in the notmuchmail wiki)
display the licence information the whole notmuch software is licenced
under.
</content>
</entry>
<entry>
<title>devel: make man-to-mdwn.pl to work with generated manual pages</title>
<updated>2014-11-02T18:46:06Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2014-08-04T17:39:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f7be8f4ebf4157a80f5ffad75be988c30267c950'/>
<id>urn:sha1:f7be8f4ebf4157a80f5ffad75be988c30267c950</id>
<content type='text'>
The new manual pages converted from rst using sphinx or rst2man
has somewhat different syntax. man-to-mdwn.pl is now adjusted
to produce even better output from this syntax. The changes also
include using utf-8 locale (e.g. for tables and generated hypens)
and and quite a few bugs fixes.
This tool still produces better results than just using the
html pages generated using sphinx / rst2html. For example those
tools don't create inter-page hyperlinks -- and the preformatted
pages written by man-to-mdwn.pl just works well with manual page
content.
</content>
</entry>
<entry>
<title>nmbug: Translate to Python</title>
<updated>2014-10-05T05:16:29Z</updated>
<author>
<name>W. Trevor King</name>
<email>wking@tremily.us</email>
</author>
<published>2014-10-03T18:20:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7f2cb3be4e8a48f351e1bed75e2a4b9d80c47431'/>
<id>urn:sha1:7f2cb3be4e8a48f351e1bed75e2a4b9d80c47431</id>
<content type='text'>
This allows us to capture stdout and stderr separately, and do other
explicit subprocess manipulation without resorting to external
packages.  It should be compatible with Python 2.7 and later
(including the 3.x series).

Most of the user-facing interface is the same, but there are a few
changes, where reproducing the original interface was too difficult or
I saw a change to make the underlying Git UI accessible:

* 'nmbug help' has been split between the general 'nmbug --help' and
  the command-specific 'nmbug COMMAND --help'.

* Commands are no longer split into "most common", "other useful", and
  "less common" sets.  If we need something like this, I'd prefer
  workflow examples highlighting common commands in the module
  docstring (available with 'nmbug --help').

* 'nmbug commit' now only uses a single argument for the optional
  commit-message text.  I wanted to expose more of the underlying 'git
  commit' UI, since I personally like to write my commit messages in
  an editor with the notes added by 'git commit -v' to jog my memory.
  Unfortunately, we're using 'git commit-tree' instead of 'git
  commit', and commit-tree is too low-level for editor-launching.  I'd
  be interested in rewriting commit() to use 'git commit', but that
  seemed like it was outside the scope of this rewrite.  So I'm not
  supporting all of Git's commit syntax in this patch, but I can at
  least match 'git commit -m MESSAGE' in requiring command-line commit
  messages to be a single argument.

* The default repository for 'nmbug push' and 'nmbug fetch' is now the
  current branch's upstream (branch.&lt;name&gt;.remote) instead of
  'origin'.  When we have to, we extract this remote by hand, but
  where possible we just call the Git command without a repository
  argument, and leave it to Git to figure out the default.

* 'nmbug push' accepts multiple refspecs if you want to explicitly
  specify what to push.  Otherwise, the refspec(s) pushed depend on
  push.default.  The Perl version hardcoded 'master' as the pushed
  refspec.

* 'nmbug pull' defaults to the current branch's upstream
  (branch.&lt;name&gt;.remote and branch.&lt;name&gt;.merge) instead of hardcoding
  'origin' and 'master'.  It also supports multiple refspecs if for
  some crazy reason you need an octopus merge (but mostly to avoid
  breaking consistency with 'git pull').

* 'nmbug log' now execs 'git log', as there's no need to keep the
  Python process around once we've launched Git there.

* 'nmbug status' now catches stderr, and doesn't print errors like:

    No upstream configured for branch 'master'

  The Perl implementation had just learned to avoid crashing on that
  case, but wasn't yet catching the dying subprocess's stderr.

* 'nmbug archive' now accepts positional arguments for the tree-ish
  and additional 'git archive' options.  For example, you can run:

    $ nmbug archive HEAD -- --format tar.gz

  I wish I could have preserved the argument order from 'git archive'
  (with the tree-ish at the end), but I'm not sure how to make
  argparse accept arbitrary possitional arguments (some of which take
  arguments).  Flipping the order to put the tree-ish first seemed
  easiest.

* 'nmbug merge' and 'pull' no longer checkout HEAD before running
  their command, because blindly clobbering the index seems overly
  risky.

* In order to avoid creating a dirty index, 'nmbug commit' now uses
  the default index (instead of nmbug.index) for composing the commit.
  That way the index matches the committed tree.  To avoid leaving a
  broken index after a failed commit, I've wrapped the whole thing in
  a try/except block that resets the index to match the pre-commit
  treeish on errors.  That means that 'nmbug commit' will ignore
  anything you've cached in the index via direct Git calls, and you'll
  either end up with an index matching your notmuch tags and the new
  HEAD (after a successful commit) or an index matching the original
  HEAD (after a failed commit).
</content>
</entry>
<entry>
<title>nmbug: Handle missing @upstream in is_unmerged</title>
<updated>2014-07-16T22:31:28Z</updated>
<author>
<name>W. Trevor King</name>
<email>wking@tremily.us</email>
</author>
<published>2014-07-06T20:40:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=567aab405b05d9ef79ddf1b62302806b9ddbeaad'/>
<id>urn:sha1:567aab405b05d9ef79ddf1b62302806b9ddbeaad</id>
<content type='text'>
If we don't have an upstream, there is nothing to merge, so nothing is
unmerged.  This avoids errors like:

  $ nmbug status
  error: No upstream configured for branch 'master'
  error: No upstream configured for branch 'master'
  fatal: ambiguous argument '@{upstream}': unknown revision or path not in the working tree.
  Use '--' to separate paths from revisions, like this:
  'git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]'
  'git rev-parse @{upstream}' exited with nonzero value

You might not have an upstream if you're only using nmbug locally to
version-control your tags.
</content>
</entry>
<entry>
<title>nmbug: Add a git_with_status helper function</title>
<updated>2014-07-16T09:31:23Z</updated>
<author>
<name>W. Trevor King</name>
<email>wking@tremily.us</email>
</author>
<published>2014-07-06T20:40:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4697e86a523fbbe43bf7ef38169f526adcbd710c'/>
<id>urn:sha1:4697e86a523fbbe43bf7ef38169f526adcbd710c</id>
<content type='text'>
Sometimes we want to catch Git errors and handle them, instead of
dying with an error message.  This lower-level version of git() allows
us to get the error status when we want it.
</content>
</entry>
<entry>
<title>nmbug-status: Optionally load the header and footer templates from the config</title>
<updated>2014-07-15T23:15:23Z</updated>
<author>
<name>W. Trevor King</name>
<email>wking@tremily.us</email>
</author>
<published>2014-05-31T22:20:27Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7f2bbe93a557c22277b46ad6048742222d80ed68'/>
<id>urn:sha1:7f2bbe93a557c22277b46ad6048742222d80ed68</id>
<content type='text'>
For folks that don't like the default templates for whatever reason.
</content>
</entry>
<entry>
<title>nmbug-status: Add the time to the footer's build-date</title>
<updated>2014-07-15T23:08:39Z</updated>
<author>
<name>W. Trevor King</name>
<email>wking@tremily.us</email>
</author>
<published>2014-05-31T22:20:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f10024f30dc907d4396fb7ef3cc8541c89e31715'/>
<id>urn:sha1:f10024f30dc907d4396fb7ef3cc8541c89e31715</id>
<content type='text'>
Our repository [1] has a post-update hook that rebuilds the status
page after each push.  Since that may happen several times a day, we
might as well show the build time (as well as the date) in the footer.

The trailing 'Z' is the ISO 8601 designator for UTC.  Now that we're
showing times, it's nice to be explicit about the timezone we're
using.

The rename from date -&gt; datetime gives us backward-compatibility for
folks that *do* only want the date.  We keep the old date formatting
to support those folks.

[1]: http://nmbug.tethera.net/git/nmbug-tags.git
</content>
</entry>
<entry>
<title>nmbug-status: Factor out header/footer context into a shared dict</title>
<updated>2014-07-15T23:08:24Z</updated>
<author>
<name>W. Trevor King</name>
<email>wking@tremily.us</email>
</author>
<published>2014-05-31T22:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=783225846849b1f9c8f7ba3b54456278a2e46bc6'/>
<id>urn:sha1:783225846849b1f9c8f7ba3b54456278a2e46bc6</id>
<content type='text'>
Rather than splitting this context into header-only and footer-only
groups, just dump it all in a shared dict.  This will make it easier
to eventually split the header/footer templates out of this script
(e.g. if we want to load them from the config file).
</content>
</entry>
<entry>
<title>Move the generated date from the top of the page to the footer.</title>
<updated>2014-07-15T23:07:18Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2014-05-31T22:20:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b70386a4cbeb1cd74ea4d54ee14f8bf22954e671'/>
<id>urn:sha1:b70386a4cbeb1cd74ea4d54ee14f8bf22954e671</id>
<content type='text'>
It's useful reference information, but anyone who wants it will look
for and find it.  We don't need this front-and-center.  Follow the
pattern set by our header template with a triple-quoted string.

The gray &lt;hr&gt; styling is less agressive.  IE uses 'color' for drawing
the rule, while Gecko and Opera use the border or 'background-color'
[1].

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=239386
</content>
</entry>
<entry>
<title>Add a docstring describing the program</title>
<updated>2014-07-15T23:07:06Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2014-05-31T22:20:23Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b5bdf5f4a83357efd874140f21cef27ef744bea2'/>
<id>urn:sha1:b5bdf5f4a83357efd874140f21cef27ef744bea2</id>
<content type='text'>
Prefer a docstring to a header comment so we can use it as the
ArgumentParser description (formatted with 'nmbug-status --help').
Script readers still have it near the top of the file.  Since it's a
docstring, use PEP 257's summary-line-and-body format [1].

[1]: http://legacy.python.org/dev/peps/pep-0257/#multi-line-docstrings
</content>
</entry>
</feed>
