mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 16:12:23 +03:00
1a5de54ab0
Reviewed By: DurhamG Differential Revision: D22240182 fbshipit-source-id: b0bf34e84f46a0593b6390c6c97a47110f8d94d2
62 lines
897 B
Perl
62 lines
897 B
Perl
#chg-compatible
|
|
|
|
$ configure modern
|
|
$ hg init
|
|
|
|
$ echo qqq>qqq.txt
|
|
|
|
add file
|
|
|
|
$ hg add
|
|
adding qqq.txt
|
|
|
|
commit first revision
|
|
|
|
$ hg ci -m 1
|
|
|
|
set bookmark
|
|
|
|
$ hg book test
|
|
|
|
$ echo www>>qqq.txt
|
|
|
|
commit second revision
|
|
|
|
$ hg ci -m 2
|
|
|
|
set bookmark
|
|
|
|
$ hg book test2
|
|
|
|
update to -2 (deactivates the active bookmark)
|
|
|
|
$ hg update -r '.^'
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
(leaving bookmark test2)
|
|
|
|
$ echo eee>>qqq.txt
|
|
|
|
commit new head
|
|
|
|
$ hg ci -m 3
|
|
|
|
bookmarks updated?
|
|
|
|
$ hg book
|
|
test 1:25e1ee7a0081
|
|
test2 1:25e1ee7a0081
|
|
|
|
strip to revision 1
|
|
|
|
$ hg hide 'desc(2)'
|
|
hiding commit 25e1ee7a0081 "2"
|
|
1 changeset hidden
|
|
removing bookmark "test (was at: 25e1ee7a0081)"
|
|
removing bookmark "test2 (was at: 25e1ee7a0081)"
|
|
2 bookmarks removed
|
|
|
|
list bookmarks
|
|
|
|
$ hg book
|
|
no bookmarks set
|