mirror of
https://github.com/facebook/sapling.git
synced 2024-12-26 14:34:34 +03:00
aac5ebea17
Summary: These now pass Reviewed By: xavierd Differential Revision: D19669584 fbshipit-source-id: dd4d374c3b373367138408ae86563ae44849690c
61 lines
1.1 KiB
Perl
61 lines
1.1 KiB
Perl
#chg-compatible
|
|
|
|
Set up repo
|
|
|
|
$ enable remotenames
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ echo 'foo'> a.txt
|
|
$ hg add a.txt
|
|
$ hg commit -m "a"
|
|
$ echo 'bar' > b.txt
|
|
$ hg add b.txt
|
|
$ hg commit -m "b"
|
|
$ hg bookmark foo -i
|
|
$ echo 'bar' > c.txt
|
|
$ hg add c.txt
|
|
$ hg commit -q -m "c"
|
|
|
|
Testing update -B feature
|
|
|
|
$ hg log -G -T '{rev} {bookmarks} {remotebookmarks}'
|
|
@ 2
|
|
|
|
|
o 1 foo
|
|
|
|
|
o 0
|
|
|
|
|
|
$ hg update -B bar foo
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
(activating bookmark foo)
|
|
$ hg log -G -T '{rev} {bookmarks} {remotebookmarks}'
|
|
o 2
|
|
|
|
|
@ 1 bar foo
|
|
|
|
|
o 0
|
|
|
|
$ hg bookmarks -v
|
|
* bar 1:661086655130 [foo]
|
|
foo 1:661086655130
|
|
|
|
$ hg update -B foo bar
|
|
abort: bookmark 'foo' already exists
|
|
[255]
|
|
|
|
Test that a bare update no long moves the active bookmark
|
|
|
|
$ hg update
|
|
updating to active bookmark bar
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ hg log -G -T '{rev} {bookmarks} {remotebookmarks}'
|
|
o 2
|
|
|
|
|
@ 1 bar foo
|
|
|
|
|
o 0
|
|
|