sapling/eden/scm/tests/test-directaccess-revset.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

27 lines
437 B
Raku

#chg-compatible
$ configure evolution
$ enable amend directaccess
$ newrepo
$ drawdag <<'EOS'
> C E
> | |
> B D
> |/
> A
> EOS
$ hg hide -q $B+$D
Both string and symbol are processed
$ hg metaedit --fold "'$B'+$C" -m foo
Warning: accessing hidden changesets 112478962961,26805aba1e60 for write operation
2 changesets folded
"Or" function is handled
$ hg log -r "$D+'$E'+merge()" -T '{desc}\n'
D
E