mercurial/bookmarks.py
changeset 41365 876494fd967d
parent 39753 b05b4b91de3d
child 41533 0f64091cc851
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
   304     """
   304     """
   305     Get the active bookmark. We can have an active bookmark that updates
   305     Get the active bookmark. We can have an active bookmark that updates
   306     itself as we commit. This function returns the name of that bookmark.
   306     itself as we commit. This function returns the name of that bookmark.
   307     It is stored in .hg/bookmarks.current
   307     It is stored in .hg/bookmarks.current
   308     """
   308     """
   309     mark = None
       
   310     try:
   309     try:
   311         file = repo.vfs('bookmarks.current')
   310         file = repo.vfs('bookmarks.current')
   312     except IOError as inst:
   311     except IOError as inst:
   313         if inst.errno != errno.ENOENT:
   312         if inst.errno != errno.ENOENT:
   314             raise
   313             raise