mercurial/bookmarks.py
changeset 24945 e0b0fbd47491
parent 24944 08ec11e3ae4c
child 24946 c44534209a0a
--- a/mercurial/bookmarks.py	Mon Apr 13 21:53:37 2015 -0700
+++ b/mercurial/bookmarks.py	Mon Apr 13 22:27:01 2015 -0700
@@ -129,12 +129,12 @@
         file.close()
     return mark
 
-def setcurrent(repo, mark):
-    '''Set the name of the bookmark that we are currently on
-
-    Set the name of the bookmark that we are on (hg update <bookmark>).
+def activate(repo, mark):
+    """
+    Set the given bookmark to be 'active', meaning that this bookmark will
+    follow new commits that are made.
     The name is recorded in .hg/bookmarks.current
-    '''
+    """
     if mark not in repo._bookmarks:
         raise AssertionError('bookmark %s does not exist!' % mark)