I spent some time confronted to this last week, so for firefoxtree
extension users out there, this might be useful too.

The way the mercurial firefoxtree [1] extension maintains repository labels
(like "fx-team", "inbound", "central", "aurora", etc.) has changed recently
(not sure when this happened exactly, but I saw the change last week).
The labels used to be implemented as local mercurial tags (you'd see them
with `hg tags`).
Whenever you'd pull from, say, fx-team the "fx-team" tag would be moved to
the right revision. And you'd then be able to update to that revision
simply with `hg up fx-team`.

Updating to a given label still works but rather than using tags, the
extension now uses a new fxtree property. This property shows up in the
output of `hg log`.
If you recently ran `mach mercurial-setup`, you should have the latest
version of the firefoxtree extension, and therefore, the new fxtree
property (`hg log | grep fxtree` should output labels).

This change should be transparent to most users, except if you, like me,
use custom mercurial templates for some common operations like showing info
in a terminal prompt, or as a way to customize the output of `hg log` (I
use an alias called "wip" [2] which shows me parts of the graph with tags,
bookmarks, etc.).

You can add the new fxtree labels to your templates by using something
like:
{label("log.fxtree", if(fxtrees," {fxtrees}"))}

Hope this helps,
Patrick

[1]
http://mozilla-version-control-tools.readthedocs.org/en/latest/hgmozilla/firefoxtree.html
[2] http://jordi.inversethought.com/blog/customising-mercurial-like-a-pro/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to