Mercurial > evolve
comparison tests/test-topic.t @ 2993:725b660d9886
topics: show the user who last touched the topic in --age
This patch adds support for showing the user who last touched the topic in the
age option to `hg topics`.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 25 Sep 2017 03:23:06 +0530 |
parents | 62201935e1a7 |
children | 1e8ac0fcd6b7 |
comparison
equal
deleted
inserted
replaced
2992:db3c85c2cb47 | 2993:725b660d9886 |
---|---|
36 | 36 |
37 List of topics: | 37 List of topics: |
38 | 38 |
39 hg topics | 39 hg topics |
40 | 40 |
41 List of topics with their last touched time sorted according to it: | 41 List of topics sorted according to their last touched time displaying last |
42 touched time and the user who last touched the topic: | |
42 | 43 |
43 hg topic --age | 44 hg topic --age |
44 | 45 |
45 The active topic (if any) will be prepended with a "*". | 46 The active topic (if any) will be prepended with a "*". |
46 | 47 |
902 t2: gamma | 903 t2: gamma |
903 t1: start on fran | 904 t1: start on fran |
904 t0^ Add file delta (base) | 905 t0^ Add file delta (base) |
905 | 906 |
906 $ hg topics --age | 907 $ hg topics --age |
907 * changewut (1970-01-01) | 908 * changewut (1970-01-01 by test) |
908 | 909 |
909 $ cd .. | 910 $ cd .. |
910 | 911 |
911 Testing the new config knob to forbid untopiced commit | 912 Testing the new config knob to forbid untopiced commit |
912 ====================================================== | 913 ====================================================== |
949 switching to topic topic1970 | 950 switching to topic topic1970 |
950 changed topic on 1 changes | 951 changed topic on 1 changes |
951 | 952 |
952 $ hg add b | 953 $ hg add b |
953 $ hg topic topic1990 | 954 $ hg topic topic1990 |
954 $ hg ci -m "Added b" --config devel.default-date="631152000 0" | 955 $ hg ci -m "Added b" --config devel.default-date="631152000 0" --user "foo" |
955 active topic 'topic1990' grew its first changeset | 956 active topic 'topic1990' grew its first changeset |
956 $ hg add c | 957 $ hg add c |
957 $ hg topic topic2010 | 958 $ hg topic topic2010 |
958 $ hg ci -m "Added c" --config devel.default-date="1262304000 0" | 959 $ hg ci -m "Added c" --config devel.default-date="1262304000 0" --user "bar" |
959 active topic 'topic2010' grew its first changeset | 960 active topic 'topic2010' grew its first changeset |
960 | 961 |
961 $ hg log -G | 962 $ hg log -G |
962 @ changeset: 3:9048b194797d | 963 @ changeset: 3:76b16af75125 |
963 | tag: tip | 964 | tag: tip |
964 | topic: topic2010 | 965 | topic: topic2010 |
965 | user: test | 966 | user: bar |
966 | date: Fri Jan 01 00:00:00 2010 +0000 | 967 | date: Fri Jan 01 00:00:00 2010 +0000 |
967 | summary: Added c | 968 | summary: Added c |
968 | | 969 | |
969 o changeset: 2:186d493c7f8d | 970 o changeset: 2:bba5bde53608 |
970 | topic: topic1990 | 971 | topic: topic1990 |
971 | user: test | 972 | user: foo |
972 | date: Mon Jan 01 00:00:00 1990 +0000 | 973 | date: Mon Jan 01 00:00:00 1990 +0000 |
973 | summary: Added b | 974 | summary: Added b |
974 | | 975 | |
975 o changeset: 1:e5a30a141954 | 976 o changeset: 1:e5a30a141954 |
976 topic: topic1970 | 977 topic: topic1970 |
983 topic1970 | 984 topic1970 |
984 topic1990 | 985 topic1990 |
985 * topic2010 | 986 * topic2010 |
986 | 987 |
987 $ hg topics --age | 988 $ hg topics --age |
988 * topic2010 (2010-01-01) | 989 * topic2010 (2010-01-01 by bar) |
989 topic1990 (1990-01-01) | 990 topic1990 (1990-01-01 by foo) |
990 topic1970 (1970-01-01) | 991 topic1970 (1970-01-01 by test) |
991 | 992 |
992 $ hg up topic1970 | 993 $ hg up topic1970 |
993 switching to topic topic1970 | 994 switching to topic topic1970 |
994 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 995 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
995 | 996 |
996 $ hg topics --age | 997 $ hg topics --age |
997 topic2010 (2010-01-01) | 998 topic2010 (2010-01-01 by bar) |
998 topic1990 (1990-01-01) | 999 topic1990 (1990-01-01 by foo) |
999 * topic1970 (1970-01-01) | 1000 * topic1970 (1970-01-01 by test) |
1000 | 1001 |
1001 $ cd .. | 1002 $ cd .. |