equal
deleted
inserted
replaced
162 _("a bookmark cannot have the name of an existing branch")) |
162 _("a bookmark cannot have the name of an existing branch")) |
163 if rev: |
163 if rev: |
164 marks[mark] = repo.lookup(rev) |
164 marks[mark] = repo.lookup(rev) |
165 else: |
165 else: |
166 marks[mark] = repo.changectx('.').node() |
166 marks[mark] = repo.changectx('.').node() |
|
167 setcurrent(repo, mark) |
167 write(repo, marks) |
168 write(repo, marks) |
168 return |
169 return |
169 |
170 |
170 if mark == None: |
171 if mark == None: |
171 if rev: |
172 if rev: |