sapling/eden/scm/tests/test-remotenames-update.t
Jun Wu 9bf6b674a6 config: use Rust graph render as default
Summary: Change the legacy Python graph render to Rust renderer.

Reviewed By: DurhamG

Differential Revision: D24317802

fbshipit-source-id: 4c3dc3a6dd02b7ebe79596a8e77f4b6b139d2e20
2020-10-19 17:07:30 -07:00

61 lines
1.0 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 '{bookmarks} {remotebookmarks}'
@
o foo
o
$ hg update -B bar foo
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
(activating bookmark foo)
$ hg log -G -T '{bookmarks} {remotebookmarks}'
o
@ bar foo
o
$ hg bookmarks -v
* bar 661086655130 [foo]
foo 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 '{bookmarks} {remotebookmarks}'
o
@ bar foo
o