sapling/tests/test-fb-hgext-reset-remotenames.t
Kostia Balytskyi b27a46c987 fb-hgext: fix copied fb-hgext tests
Summary:
This is a big bulk of generally almost-obvious fixes to the moved tests. Mostly
these fixes have to do with correct importing of the actual extensions.

Depends on D6675329

Test Plan:
- ./run-tests.py fails less after this commit
- see further commits for more test fixes

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675344
2018-01-09 03:06:09 -08:00

31 lines
642 B
Perl

$ . $TESTDIR/require-ext.sh remotenames
$ cat >> $HGRCPATH << EOF
> [extensions]
> reset=
> remotenames=
> EOF
$ hg init repo
$ cd repo
$ echo x > x
$ hg commit -qAm x
$ hg book foo
$ echo x >> x
$ hg commit -qAm x2
Resetting past a remote bookmark should not delete the remote bookmark
$ cd ..
$ hg clone repo client
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd client
$ hg book bar
$ hg reset --clean "default/foo^"
$ hg log -G -T '{node|short} {bookmarks} {remotebookmarks}\n'
o a89d614e2364 default/foo
|
@ b292c1e3311f bar