Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial move bookmark to old commit

I currently have something looks like this:

@  changeset:   4
|  bookmark:    A
|  bookmark:    B
|  tag:         tip
|
o  changeset:   3
|  -
|
o  changeset:   2
|  -
|
o  changeset:   1
|  bookmark:    master

I want to move my bookmark A down to changeset 3 and leave bookmark B at the current HEAD. How can I accomplish this?

like image 509
Jin Avatar asked Jul 08 '13 19:07

Jin


1 Answers

Should just be able to do

hg bookmark --rev 3 A

or if it complains

hg bookmark --rev 3 --force A

Try hg help bookmark for an explanation.

like image 122
Ry4an Brase Avatar answered Oct 13 '22 21:10

Ry4an Brase