mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
b27a46c987
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
37 lines
605 B
Perl
37 lines
605 B
Perl
Set up test environment.
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> fbamend=
|
|
> rebase=
|
|
> [experimental]
|
|
> evolution = createmarkers, allowunstable
|
|
> EOF
|
|
$ showgraph() {
|
|
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
|
> }
|
|
|
|
Test that rebased commits that would cause instability are inhibited.
|
|
$ hg init repo && cd repo
|
|
$ hg debugbuilddag -m '+3 *3'
|
|
$ showgraph
|
|
o 3 r3
|
|
|
|
|
| o 2 r2
|
|
| |
|
|
| o 1 r1
|
|
|/
|
|
o 0 r0
|
|
$ hg rebase -r 1 -d 3
|
|
rebasing 1:* "r1" (glob)
|
|
merging mf
|
|
$ showgraph
|
|
o 4 r1
|
|
|
|
|
o 3 r3
|
|
|
|
|
| o 2 r2
|
|
| |
|
|
| x 1 r1
|
|
|/
|
|
o 0 r0
|