sapling/tests/test-fb-hgext-reset-remotenames.t
Jun Wu 5bb0e8fcf1 tests: remove require-ext.sh
Summary:
The script was used to check dependency on extenral extension. It's no longer
necessary since those "external" extensions are in repo now.

Reviewed By: DurhamG

Differential Revision: D13440398

fbshipit-source-id: 2f228ddee621b84a23f44748d843f29e1f05530e
2018-12-12 18:54:22 -08:00

30 lines
600 B
Perl

$ 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