mercurial/bookmarks.py
changeset 26781 1aee2ab0f902
parent 26520 46dec89fe888
child 26999 2d79a354d843
equal deleted inserted replaced
26780:bbf544b5f2e9 26781:1aee2ab0f902
   169         wlock.release()
   169         wlock.release()
   170     repo._activebookmark = mark
   170     repo._activebookmark = mark
   171 
   171 
   172 def deactivate(repo):
   172 def deactivate(repo):
   173     """
   173     """
   174     Unset the active bookmark in this reposiotry.
   174     Unset the active bookmark in this repository.
   175     """
   175     """
   176     wlock = repo.wlock()
   176     wlock = repo.wlock()
   177     try:
   177     try:
   178         repo.vfs.unlink('bookmarks.current')
   178         repo.vfs.unlink('bookmarks.current')
   179         repo._activebookmark = None
   179         repo._activebookmark = None