sapling/tests/test-fb-hgext-tweakdefaults-ordering.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

32 lines
762 B
Perl

Skip test if remotenames not present
$ . $TESTDIR/require-ext.sh remotenames
Set up extensions (order is important here, we must test tweakdefaults loading last)
$ cat >> $HGRCPATH << EOF
> [extensions]
> rebase=
> remotenames=
> tweakdefaults=
> EOF
Run test
$ hg init repo
$ cd repo
$ touch a
$ hg commit -Aqm a
$ touch b
$ hg commit -Aqm b
$ hg bookmark AB
$ hg up ".^"
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
(leaving bookmark AB)
(hint: use 'hg prev' to move to the parent changeset)
$ touch c
$ hg commit -Aqm c
$ hg bookmark C -t AB
$ hg rebase
rebasing 2:d5e255ef74f8 "c" (C tip)
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d5e255ef74f8-7d2cc323-rebase.hg (glob)