mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
212cec117b
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
27 lines
437 B
Raku
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
|