sapling/eden/scm/tests/test-commit-amend-reuse-rawfctx.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
861 B
Perl

#chg-compatible
$ configure mutation-norecord
File node could be reused during commit --amend
$ newrepo
$ echo 1 > a
$ echo 2 > b
$ hg commit -m 12 -A a b
$ echo 3 >> a
$ hg commit -m 3
$ hg commit --debug --amend -m 'without content change'
amending changeset 0bd823dca296
copying changeset 0bd823dca296 to dd3d87f356df
committing files:
a
reusing a filelog node (exact match)
committing manifest
committing changelog
committed changeset 2:92bc7a9d76f010337ece134e095054c094d44760
#if execbit
File node is reused for mode-only change
$ chmod +x b
$ hg ci --debug --amend -m 'without content change'
amending changeset 92bc7a9d76f0
committing files:
a
reusing a filelog node (exact match)
b
committing manifest
committing changelog
committed changeset 3:ba954a28eb454eb63e7348349f8e87e7b1be3601
#endif