Show More
@@ -539,6 +539,9 b' def bookmark(ui, repo, mark=None, rev=No' | |||
|
539 | 539 | if not mark: |
|
540 | 540 | raise util.Abort(_("bookmark names cannot consist entirely of " |
|
541 | 541 | "whitespace")) |
|
542 | if inactive and mark == repo._bookmarkcurrent: | |
|
543 | bookmarks.setcurrent(repo, None) | |
|
544 | return | |
|
542 | 545 | if mark in marks and not force: |
|
543 | 546 | raise util.Abort(_("bookmark '%s' already exists " |
|
544 | 547 | "(use -f to force)") % mark) |
@@ -106,3 +106,22 b' set bookmark Z using -i' | |||
|
106 | 106 | $ hg bookmarks |
|
107 | 107 | * Y 0:719295282060 |
|
108 | 108 | Z 0:719295282060 |
|
109 | ||
|
110 | deactivate current bookmark using -i | |
|
111 | ||
|
112 | $ hg bookmark -i Y | |
|
113 | $ hg bookmarks | |
|
114 | Y 0:719295282060 | |
|
115 | Z 0:719295282060 | |
|
116 | ||
|
117 | $ hg up -q Y | |
|
118 | $ hg bookmarks | |
|
119 | * Y 0:719295282060 | |
|
120 | Z 0:719295282060 | |
|
121 | ||
|
122 | deactivate current bookmark while renaming | |
|
123 | ||
|
124 | $ hg bookmark -i -m Y X | |
|
125 | $ hg bookmarks | |
|
126 | X 0:719295282060 | |
|
127 | Z 0:719295282060 |
@@ -205,7 +205,7 b' Show all commands + options' | |||
|
205 | 205 | archive: no-decode, prefix, rev, type, subrepos, include, exclude |
|
206 | 206 | backout: merge, parent, tool, rev, include, exclude, message, logfile, date, user |
|
207 | 207 | bisect: reset, good, bad, skip, extend, command, noupdate |
|
208 | bookmarks: force, rev, delete, rename | |
|
208 | bookmarks: force, rev, delete, rename, inactive | |
|
209 | 209 | branch: force, clean |
|
210 | 210 | branches: active, closed |
|
211 | 211 | bundle: force, rev, branch, base, all, type, ssh, remotecmd, insecure |
General Comments 0
You need to be logged in to leave comments.
Login now