sapling/eden/scm/tests/test-rebase-missing-cwd.t
Jun Wu 75a8173a10 tests: enable chg for 572 tests
Summary:
Add `#chg-compatible` to 572 tests that seem to pass with chg enabled.
This should make them run faster.

Reviewed By: xavierd

Differential Revision: D18870507

fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
2019-12-09 15:26:29 -08:00

44 lines
923 B
Perl

#chg-compatible
TODO: Make this test compatibile with obsstore enabled.
$ setconfig experimental.evolution=
#require rmcwd
Ensure that dirsync does not cause an abort when cwd goes missing
$ enable rebase dirsync
$ setconfig phases.publish=False
$ newrepo
$ drawdag <<'EOF'
> change # change/a = a
> |
> | delete # delete/dir/a = (removed)
> | /
> base # base/dir/a = a
> EOF
$ hg co -q $change
$ cd dir
$ hg rebase -s . -d $delete
rebasing 6f52fdb3a577 "change"
current directory was removed
(consider changing to repo root: $TESTTMP/repo1)
saved backup bundle to $TESTTMP/repo1/.hg/strip-backup/6f52fdb3a577-1340ca06-rebase.hg
$ cd -
$TESTTMP/repo1
$ hg status
$ hg log -Gr ":" -T "{node|short} {desc}"
@ 74e7da63e173 change
|
o 5f45087392e8 delete
|
o aa6caddcd04f base
$ hg rebase --abort
abort: no rebase in progress
[255]