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