sapling/eden/scm/tests/test-commit-revive.t
Jun Wu 4efd06e29b test-commit-revive: use modern configs
Reviewed By: sfilipco

Differential Revision: D21913593

fbshipit-source-id: fb83477fde8287da34e67c2e34c6269029d0469f
2020-06-10 19:30:00 -07:00

40 lines
567 B
Perl

#chg-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