Mercurial > hg
comparison hgext/shelve.py @ 24947:a02d293a1079
bookmarks: rename bookmarkcurrent to activebookmark (API)
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 13:17:33 -0700 |
parents | 3510ec97ffdc |
children | 68f456f2f425 |
comparison
equal
deleted
inserted
replaced
24946:c44534209a0a | 24947:a02d293a1079 |
---|---|
161 raise util.Abort(_('cannot shelve while merging')) | 161 raise util.Abort(_('cannot shelve while merging')) |
162 parent = parents[0] | 162 parent = parents[0] |
163 | 163 |
164 # we never need the user, so we use a generic user for all shelve operations | 164 # we never need the user, so we use a generic user for all shelve operations |
165 user = 'shelve@localhost' | 165 user = 'shelve@localhost' |
166 label = repo._bookmarkcurrent or parent.branch() or 'default' | 166 label = repo._activebookmark or parent.branch() or 'default' |
167 | 167 |
168 # slashes aren't allowed in filenames, therefore we rename it | 168 # slashes aren't allowed in filenames, therefore we rename it |
169 label = label.replace('/', '_') | 169 label = label.replace('/', '_') |
170 | 170 |
171 def gennames(): | 171 def gennames(): |