sapling/eden/scm/tests/test-commit-revive.t
Jun Wu 00ecfbb16c tests: opt-in new test runner for passing tests
Summary:
A lot of tests are passing with the new test runner.

This is done by `./edit-feature-header.py debugruntest` and paste
the `Passed:` section from `hg debugruntest -v test-*.t` output.

Note: some tests fail with this but pass with debugruntest. They
will be investigated as follow-up.

Differential Revision: D34931992

fbshipit-source-id: 99abc3d9800bb1dd3487dbfa15d715c0bd3ba878
2022-08-16 14:59:23 -07:00

41 lines
592 B
Perl

#chg-compatible
#debugruntest-compatible
$ configure modern
"import" can revive a commit
$ newrepo
$ drawdag <<'EOS'
> B
> |
> A
> EOS
$ hg export $B > $TESTTMP/b.patch
$ hg hide -q $B
$ hg log -r 'all()' -T '{desc}\n'
A
$ hg up -q $A
$ hg import -q --exact $TESTTMP/b.patch
$ hg log -r 'all()' -T '{desc}\n'
A
B
"commit" can revive a commit
$ newrepo
$ hg commit --config ui.allowemptycommit=1 -m A
$ hg hide -q .
$ hg log -r 'all()' -T '{desc}\n'
$ hg commit --config ui.allowemptycommit=1 -m A
$ hg log -r 'all()' -T '{desc}\n'
A