Mercurial > hg > mercurial-source
comparison tests/test-command-template.t @ 25832:f26efa4f0eff
templatekw: introduce active subkeyword from bookmarks keyword
Today, the terms 'active' and 'current' are interchangeably used throughout the
codebase in reference to the active bookmark (the bookmark that will be updated
with the next commit). This leads to confusion among developers and users.
This patch is part of a series to standardize the usage to 'active' throughout
the mercurial codebase and user interface.
author | Ryan McElroy <rmcelroy@fb.com> |
---|---|
date | Thu, 28 May 2015 20:03:42 -0700 |
parents | 7e5d5160073b |
children | 62da2d7745f9 |
comparison
equal
deleted
inserted
replaced
25831:ceec79b5657a | 25832:f26efa4f0eff |
---|---|
3084 | 3084 |
3085 Test current bookmark templating | 3085 Test current bookmark templating |
3086 | 3086 |
3087 $ hg book foo | 3087 $ hg book foo |
3088 $ hg book bar | 3088 $ hg book bar |
3089 $ hg log --template "{rev} {bookmarks % '{bookmark}{ifeq(bookmark, current, \"*\")} '}\n" | 3089 $ hg log --template "{rev} {bookmarks % '{bookmark}{ifeq(bookmark, active, \"*\")} '}\n" |
3090 2 bar* foo | 3090 2 bar* foo |
3091 1 | 3091 1 |
3092 0 | 3092 0 |
3093 $ hg log --template "{rev} {activebookmark}\n" | 3093 $ hg log --template "{rev} {activebookmark}\n" |
3094 2 bar | 3094 2 bar |