mercurial/bookmarks.py
changeset 24944 08ec11e3ae4c
parent 24832 5947a68fa271
child 24945 e0b0fbd47491
--- a/mercurial/bookmarks.py	Wed May 06 17:15:38 2015 +0200
+++ b/mercurial/bookmarks.py	Mon Apr 13 21:53:37 2015 -0700
@@ -84,7 +84,7 @@
     def _writerepo(self, repo):
         """Factored out for extensibility"""
         if repo._bookmarkcurrent not in self:
-            unsetcurrent(repo)
+            deactivate(repo)
 
         wlock = repo.wlock()
         try:
@@ -151,7 +151,10 @@
         wlock.release()
     repo._bookmarkcurrent = mark
 
-def unsetcurrent(repo):
+def deactivate(repo):
+    """
+    Unset the active bookmark in this reposiotry.
+    """
     wlock = repo.wlock()
     try:
         try: