hgext/bookmarks.py
changeset 7816 f420eafe59cd
parent 7795 5043def56a80
child 7817 cb516e788238
equal deleted inserted replaced
7815:bcd364b247ba 7816:f420eafe59cd
   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: