sapling/tests/test-fb-hgext-smartlog-hide-before.t
Jun Wu 28b4dfbb38 smartlog: show more commits
Summary:
To make "draft()" bounded and train users to hide unused commits manually,
change smartlog to "hide commits before <a static date>", instead of
"hide commits that are older than <a static time span>". Then we can
incrementally decrease the static date, and eventually show everything, and
force the user to think about what commits to keep or hide.

Reviewed By: singhsrb

Differential Revision: D13993584

fbshipit-source-id: 1a2b56f50d7f014a589f798cd2feaa6931e64fe3
2019-03-11 11:11:59 -07:00

29 lines
635 B
Perl

$ 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)