sapling/tests/test-tweakdefaults-ordering.t
Jun Wu 8a3a99ba21 hgext: move single file extensions to hgext3rd
Summary:
Be a better citizen under system python path.

Fix all tests issues and change setup.py to use glob pattern to include
all extensions.

Test Plan:
Run tests and `make local`.
Also build and install the package and run `hg sl` in major repos.

Reviewers: #mercurial, ttung, rmcelroy

Reviewed By: rmcelroy

Subscribers: rmcelroy, durham, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3534311

Signature: t1:3534311:1468275426:fe122646c8bd6c541e1889e73e9df28f86747ff2
2016-07-08 13:15:42 +01:00

33 lines
857 B
Perl

Skip test if remotenames not present
$ $PYTHON -c 'import remotenames' || exit 80
Set up extensions (order is important here, we must test tweakdefaults loading last)
$ extpath=`dirname $TESTDIR`
$ cp $extpath/hgext3rd/tweakdefaults.py $TESTTMP # use $TESTTMP substitution in message
$ cat >> $HGRCPATH << EOF
> [extensions]
> rebase=
> remotenames=
> tweakdefaults=$TESTTMP/tweakdefaults.py
> 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)
$ touch c
$ hg commit -Aqm c
$ hg bookmark C -t AB
$ hg rebase
rebasing 2:d5e255ef74f8 "c" (tip C)
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d5e255ef74f8-7d2cc323-backup.hg (glob)