mercurial/commands.py
changeset 17736 1c523c4008f7
parent 17717 009db477c9fb
parent 17735 605fe310691f
child 17773 434e5bd615fc
equal deleted inserted replaced
17734:619068c280fd 17736:1c523c4008f7
   844     if mark is None:
   844     if mark is None:
   845         if rev:
   845         if rev:
   846             raise util.Abort(_("bookmark name required"))
   846             raise util.Abort(_("bookmark name required"))
   847         if len(marks) == 0:
   847         if len(marks) == 0:
   848             ui.status(_("no bookmarks set\n"))
   848             ui.status(_("no bookmarks set\n"))
       
   849         if inactive:
       
   850             if not repo._bookmarkcurrent:
       
   851                 ui.status(_("no active bookmark\n"))
       
   852             else:
       
   853                 bookmarks.setcurrent(repo, None)
       
   854             return
   849         else:
   855         else:
   850             for bmark, n in sorted(marks.iteritems()):
   856             for bmark, n in sorted(marks.iteritems()):
   851                 current = repo._bookmarkcurrent
   857                 current = repo._bookmarkcurrent
   852                 if bmark == current and n == cur:
   858                 if bmark == current and n == cur:
   853                     prefix, label = '*', 'bookmarks.current'
   859                     prefix, label = '*', 'bookmarks.current'