mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
7e8bf80a31
Summary: I thought we had already done this Test Plan: Used new tweakdefaults and the rebase abort issue was fixed! Reviewers: #sourcecontrol, durham Reviewed By: #sourcecontrol, durham Differential Revision: https://phabricator.fb.com/D2457645
33 lines
847 B
Perl
33 lines
847 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/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)
|
|
|
|
|