sapling/eden/scm/tests/test-remotenames-update.t
Jun Wu 75a8173a10 tests: enable chg for 572 tests
Summary:
Add `#chg-compatible` to 572 tests that seem to pass with chg enabled.
This should make them run faster.

Reviewed By: xavierd

Differential Revision: D18870507

fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
2019-12-09 15:26:29 -08:00

64 lines
1.1 KiB
Perl

#chg-compatible
Set up repo
$ cat >> $HGRCPATH << EOF
> [extensions]
> remotenames=
> EOF
$ 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