mercurial/bookmarks.py
changeset 25081 7642f119c2a2
parent 24986 fb9b7b937b3e
child 25100 d6e7ac651973
equal deleted inserted replaced
25080:68f456f2f425 25081:7642f119c2a2
   154     """
   154     """
   155     Unset the active bookmark in this reposiotry.
   155     Unset the active bookmark in this reposiotry.
   156     """
   156     """
   157     wlock = repo.wlock()
   157     wlock = repo.wlock()
   158     try:
   158     try:
   159         try:
   159         repo.vfs.unlink('bookmarks.current')
   160             repo.vfs.unlink('bookmarks.current')
   160         repo._activebookmark = None
   161             repo._activebookmark = None
   161     except OSError, inst:
   162         except OSError, inst:
   162         if inst.errno != errno.ENOENT:
   163             if inst.errno != errno.ENOENT:
   163             raise
   164                 raise
       
   165     finally:
   164     finally:
   166         wlock.release()
   165         wlock.release()
   167 
   166 
   168 def isactivewdirparent(repo):
   167 def isactivewdirparent(repo):
   169     """
   168     """