equal
deleted
inserted
replaced
135 setcurrent(repo, None) |
135 setcurrent(repo, None) |
136 del marks[mark] |
136 del marks[mark] |
137 write(repo) |
137 write(repo) |
138 return |
138 return |
139 |
139 |
140 if mark != None: |
140 if mark is not None: |
141 if "\n" in mark: |
141 if "\n" in mark: |
142 raise util.Abort(_("bookmark name cannot contain newlines")) |
142 raise util.Abort(_("bookmark name cannot contain newlines")) |
143 mark = mark.strip() |
143 mark = mark.strip() |
144 if not mark: |
144 if not mark: |
145 raise util.Abort(_("bookmark names cannot consist entirely of " |
145 raise util.Abort(_("bookmark names cannot consist entirely of " |