equal
deleted
inserted
replaced
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 |