John Mulligan <phlogistonjohn@asynchrono.us> [Wed, 14 Jan 2009 21:47:38 -0500] rev 7657
branch closing: add test for branch closing (and reopening)
John Mulligan <phlogistonjohn@asynchrono.us> [Wed, 14 Jan 2009 21:47:38 -0500] rev 7656
branch closing: referencing open and closed branches/heads
Treat fully closed branches similarly to "inactive" in the output of
'hg branches'. They will be suffixed with "(closed)" where inactive branches
are marked with "(inactive)". If the -a/--active option is given both
inactive and closed branches will not be shown.
Partially closed branches (multiple heads, at least one not closed)
will display the next (tipmost) open head.
Add -a/--active option to "hg heads" which will hide closed heads iff the
option is specified.
In other hg commands, when multiple branch heads exist the branch name will
refer to the tipmost open head, and if none exist, then the tipmost closed
head.
John Mulligan <phlogistonjohn@asynchrono.us> [Wed, 14 Jan 2009 21:47:38 -0500] rev 7655
branch closing: mark closed branches with a 'close' extra
Adds a --close-branch option to commit.
When --close-branch is present the commit will mark the changeset
with close=1 in the changeset extras field.
If a regular changeset is added on top of a closed head the branch
is no longer considered closed, and thus re-opened.
John Mulligan <phlogistonjohn@asynchrono.us> [Wed, 14 Jan 2009 21:47:38 -0500] rev 7654
store all heads of a branch in the branch cache
All heads of branches will be stored in a new cache file 'branchheads.cache'
within the .hg directory. The old 'branch.cache' file from older versions
will be ignored.
The new cache contents are formatted line-by-line as '{node} {branchtag}\n'.
This is the same as the previous format. Now, every head is recorded in
an oldest -> tipmost order.
The localrepo.branchheads function is reworked to use the data from the cache.
Martin Geisler <mg@daimi.au.dk> [Thu, 15 Jan 2009 20:23:18 +0100] rev 7653
i18n: make local now builds .mo files
Martin Geisler <mg@daimi.au.dk> [Thu, 15 Jan 2009 15:28:42 +0100] rev 7652
i18n: beginnings of a Danish translation
Martin Geisler <mg@daimi.au.dk> [Thu, 15 Jan 2009 00:14:36 +0100] rev 7651
i18n: encode output in user's local encoding
This makes the translated output obey the HGENCODING environment
variable or the preferred encoding as set by the LANG or LC_ALL
environment variables.
Python 2.4 has a lgettext method which is similar, except that it
doesn't know about HGENCODING or the settings in .hgrc.
Martin Geisler <mg@daimi.au.dk> [Thu, 15 Jan 2009 00:12:35 +0100] rev 7650
i18n: lookup .mo files in private locale/ directory
This default is to look for /usr/share/locale/xx/LC_MESSAGES/hg.mo for
language xx, but this code will instead do the lookup from locale/ or
mercurial/locale/ relative to the root of the Mercurial source tree.
Martin Geisler <mg@daimi.au.dk> [Thu, 15 Jan 2009 00:11:54 +0100] rev 7649
i18n: new build_mo command for setup.py
This command will generate .mo files under locale/ for the .po files
found under i18n/.
Martin Geisler <mg@daimi.au.dk> [Thu, 15 Jan 2009 00:10:54 +0100] rev 7648
i18n: let Makefile generate i18n/hg.pot
The target update-pot extracts strings using pygettext and updates the
i18n/hg.pot file. The translators can then use msgmerge to merge the
new strings in hg.pot with their xx.po file when they want to.
The setup.py file now includes files under both templates/ and i18n/
as data files.