sapling/eden/scm/tests/test-fb-hgext-smartlog-hide-before.t
Jun Wu 75a8173a10 tests: enable chg for 572 tests
Summary:
Add `#chg-compatible` to 572 tests that seem to pass with chg enabled.
This should make them run faster.

Reviewed By: xavierd

Differential Revision: D18870507

fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
2019-12-09 15:26:29 -08:00

31 lines
652 B
Perl

#chg-compatible
$ newrepo
$ enable smartlog
$ setconfig ui.allowemptycommit=1 phases.publish=False smartlog.master=master
$ drawdag << 'EOS'
> B C # B has date 100000 0
> |/ # C has date 200000 0
> A
> EOS
$ hg bookmark -ir $A master
$ hg sl --config smartlog.hide-before='10000 0' -T '{desc}'
o C
|
| o B
|/
o A
$ hg sl --config smartlog.hide-before='150000 0' -T '{desc}'
o C
|
o A
note: hiding 1 old heads without bookmarks
(use --all to see them)
$ hg sl --config smartlog.hide-before='250000 0' -T '{desc}'
o A
note: hiding 2 old heads without bookmarks
(use --all to see them)