mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
1183f14f11
Summary: This was a hack to allow the tests to produce the same hashes as before. Let's disable this and fix the remaining test failures. A future diff will remove the feature entirely. Where possible I changed input hashes to desc() and output hashes to globs so hopefully future hash changes are a little easier. Differential Revision: D29567762 fbshipit-source-id: cf5150c112c56b08f583feba80e5a636cc07db0a
42 lines
764 B
Perl
42 lines
764 B
Perl
#chg-compatible
|
|
|
|
$ configure mutation-norecord
|
|
#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 * "change" (glob)
|
|
current directory was removed
|
|
(consider changing to repo root: $TESTTMP/repo1)
|
|
|
|
$ cd -
|
|
$TESTTMP/repo1
|
|
$ hg status
|
|
|
|
$ hg log -Gr "all()" -T "{node|short} {desc}"
|
|
@ * change (glob)
|
|
│
|
|
o * delete (glob)
|
|
│
|
|
o * base (glob)
|
|
|
|
$ hg rebase --abort
|
|
abort: no rebase in progress
|
|
[255]
|