sapling/eden/scm/tests/test-commit-revive.t
Mark Thomas 212cec117b tinit.sh: add configure for setting up standard configurations
Summary:
Add a new `tinit.sh` function: `configure`, which takes over from the
feature-enabling aspect of `enable`.

This provides a few features that are configurable:

  * `dummyssh` sets `ui.ssh` to `dummyssh`.
  * `mutation` and `mutation-norecord` enable mutation and visibility tracking
  * `evolution` enables evolution and disables mutation and visibility.
  * `noevolution` disables evolution, as well as mutation and visibility.

Since `enable` now only refers to extensions, it is joined by a corresponding `disable` to
disable an extension.

Some tests are updated to take advantage of these new functions.

Reviewed By: quark-zju

Differential Revision: D19427595

fbshipit-source-id: 03cc639918b4e667927330d3f3abf16121ebf161
2020-01-20 02:45:14 -08:00

39 lines
645 B
Perl

#chg-compatible
$ configure evolution
$ enable amend
"import" can revive a commit
$ newrepo
$ drawdag <<'EOS'
> B
> |
> A
> EOS
$ hg export $B > $TESTTMP/b.patch
$ hg hide -q $B
$ hg log -r 'obsolete()' --hidden -T '{desc}'
B (no-eol)
$ hg up -q $A
$ hg import -q --exact $TESTTMP/b.patch
$ hg log -r 'obsolete()' --hidden -T '{desc}'
"commit" can revive a commit
$ newrepo
$ hg commit --config ui.allowemptycommit=1 -m A
$ hg hide -q .
$ hg log -r 'obsolete()' --hidden -T '{desc}'
A (no-eol)
$ hg commit --config ui.allowemptycommit=1 -m A
$ hg log -r 'obsolete()' --hidden -T '{desc}'