Mercurial > hg
comparison mercurial/cmdutil.py @ 24986:fb9b7b937b3e
bookmarks: simplify iscurrent to isactivewdirparent (API)
Previously this function accepted two optional parameters that were unused by
any callers and complicated the function.
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 | Tue, 14 Apr 2015 12:45:15 -0700 |
parents | 1df233bcb7f6 |
children | fd7287f0b43c |
comparison
equal
deleted
inserted
replaced
24985:20bff5d09018 | 24986:fb9b7b937b3e |
---|---|
2719 edittext.append(_("HG: user: %s") % ctx.user()) | 2719 edittext.append(_("HG: user: %s") % ctx.user()) |
2720 if ctx.p2(): | 2720 if ctx.p2(): |
2721 edittext.append(_("HG: branch merge")) | 2721 edittext.append(_("HG: branch merge")) |
2722 if ctx.branch(): | 2722 if ctx.branch(): |
2723 edittext.append(_("HG: branch '%s'") % ctx.branch()) | 2723 edittext.append(_("HG: branch '%s'") % ctx.branch()) |
2724 if bookmarks.iscurrent(repo): | 2724 if bookmarks.isactivewdirparent(repo): |
2725 edittext.append(_("HG: bookmark '%s'") % repo._activebookmark) | 2725 edittext.append(_("HG: bookmark '%s'") % repo._activebookmark) |
2726 edittext.extend([_("HG: subrepo %s") % s for s in subs]) | 2726 edittext.extend([_("HG: subrepo %s") % s for s in subs]) |
2727 edittext.extend([_("HG: added %s") % f for f in added]) | 2727 edittext.extend([_("HG: added %s") % f for f in added]) |
2728 edittext.extend([_("HG: changed %s") % f for f in modified]) | 2728 edittext.extend([_("HG: changed %s") % f for f in modified]) |
2729 edittext.extend([_("HG: removed %s") % f for f in removed]) | 2729 edittext.extend([_("HG: removed %s") % f for f in removed]) |