Mercurial > evolve
comparison tests/test-topic.t @ 2747:9fd6c8efda5b
topics: add a test demonstarting sorting of topics by time using --age
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 14 Jul 2017 08:08:32 +0530 |
parents | adfbb984ebbb |
children | 2280461343e5 08a64770ed24 |
comparison
equal
deleted
inserted
replaced
2746:c64e2167514b | 2747:9fd6c8efda5b |
---|---|
862 tag: tip | 862 tag: tip |
863 user: test | 863 user: test |
864 date: Thu Jan 01 00:00:00 1970 +0000 | 864 date: Thu Jan 01 00:00:00 1970 +0000 |
865 summary: added a | 865 summary: added a |
866 | 866 |
867 $ hg topic topic1970 --rev 0 | |
868 switching to topic topic1970 | |
869 changed topic on 1 changes | |
870 $ hg add b | |
871 $ hg topic topic1990 | |
872 $ hg ci -m "Added b" --config devel.default-date="631152000 0" | |
873 $ hg add c | |
874 $ hg topic topic2010 | |
875 $ hg ci -m "Added c" --config devel.default-date="1262304000 0" | |
876 $ hg log | |
877 changeset: 3:9048b194797d | |
878 tag: tip | |
879 topic: topic2010 | |
880 user: test | |
881 date: Fri Jan 01 00:00:00 2010 +0000 | |
882 summary: Added c | |
883 | |
884 changeset: 2:186d493c7f8d | |
885 topic: topic1990 | |
886 user: test | |
887 date: Mon Jan 01 00:00:00 1990 +0000 | |
888 summary: Added b | |
889 | |
890 changeset: 1:e5a30a141954 | |
891 topic: topic1970 | |
892 parent: -1:000000000000 | |
893 user: test | |
894 date: Thu Jan 01 00:00:00 1970 +0000 | |
895 summary: added a | |
896 | |
897 $ hg topics | |
898 topic1970 | |
899 topic1990 | |
900 * topic2010 | |
901 $ hg topics --age | |
902 * topic2010 (2010-01-01) | |
903 topic1990 (1990-01-01) | |
904 topic1970 (1970-01-01) | |
905 $ hg up topic1970 | |
906 switching to topic topic1970 | |
907 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
908 $ hg topics --age | |
909 topic2010 (2010-01-01) | |
910 topic1990 (1990-01-01) | |
911 * topic1970 (1970-01-01) | |
912 | |
867 $ cd .. | 913 $ cd .. |