mercurial/commands.py
changeset 17809 a7462ca7f75e
parent 17808 f74217289c0a
child 17814 f88ca484c3e9
equal deleted inserted replaced
17808:f74217289c0a 17809:a7462ca7f75e
   849             marks[mark] = cur
   849             marks[mark] = cur
   850         if not inactive and cur == marks[mark]:
   850         if not inactive and cur == marks[mark]:
   851             bookmarks.setcurrent(repo, mark)
   851             bookmarks.setcurrent(repo, mark)
   852         bookmarks.write(repo)
   852         bookmarks.write(repo)
   853 
   853 
   854     else: # mark is None
   854     else: # show bookmarks
   855         if len(marks) == 0:
   855         if len(marks) == 0:
   856             ui.status(_("no bookmarks set\n"))
   856             ui.status(_("no bookmarks set\n"))
   857         elif inactive:
   857         elif inactive:
   858             if not repo._bookmarkcurrent:
   858             if not repo._bookmarkcurrent:
   859                 ui.status(_("no active bookmark\n"))
   859                 ui.status(_("no active bookmark\n"))