Show More
@@ -100,7 +100,7 b' def setcurrent(repo, mark):' | |||
|
100 | 100 | refs = parse(repo) |
|
101 | 101 | |
|
102 | 102 | # do not update if we do update to a rev equal to the current bookmark |
|
103 | if (mark not in refs and | |
|
103 | if (mark and mark not in refs and | |
|
104 | 104 | current(repo) and refs[current(repo)] == repo.changectx('.').node()): |
|
105 | 105 | return |
|
106 | 106 | if mark not in refs: |
@@ -146,6 +146,8 b' def bookmark(ui, repo, mark=None, rev=No' | |||
|
146 | 146 | raise util.Abort(_("bookmark name required")) |
|
147 | 147 | if mark not in marks: |
|
148 | 148 | raise util.Abort(_("a bookmark of this name does not exist")) |
|
149 | if mark == current(repo): | |
|
150 | setcurrent(repo, None) | |
|
149 | 151 | del marks[mark] |
|
150 | 152 | write(repo, marks) |
|
151 | 153 | return |
General Comments 0
You need to be logged in to leave comments.
Login now