2015-09-18 20:15:59 +03:00
|
|
|
Skip test if remotenames not present
|
2016-07-12 22:39:34 +03:00
|
|
|
$ . $TESTDIR/require-ext.sh remotenames
|
2015-09-18 20:15:59 +03:00
|
|
|
|
|
|
|
Set up extensions (order is important here, we must test tweakdefaults loading last)
|
2016-01-08 05:30:24 +03:00
|
|
|
$ extpath=`dirname $TESTDIR`
|
2016-07-08 15:15:42 +03:00
|
|
|
$ cp $extpath/hgext3rd/tweakdefaults.py $TESTTMP # use $TESTTMP substitution in message
|
2015-09-18 20:15:59 +03:00
|
|
|
$ 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
|
2016-01-08 05:30:24 +03:00
|
|
|
$ hg up ".^"
|
2015-09-18 20:15:59 +03:00
|
|
|
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)
|
|
|
|
|
|
|
|
|