Mercurial > evolve
comparison tests/test-topic.t @ 4379:2893b127923b
topic: make ranges work in revset relations like 'foo#topic[1:2]'
Since #topic is very similar to #generations, we reuse the function directly.
Few tests because #generations is already tested in core.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 27 Jan 2019 17:39:09 +0800 |
parents | 0f015fe4f71f |
children | 5f1d0cff514d |
comparison
equal
deleted
inserted
replaced
4378:0b97d4bea7e0 | 4379:2893b127923b |
---|---|
858 | 858 |
859 $ tlog 'featureA' | 859 $ tlog 'featureA' |
860 3: featureA | 860 3: featureA |
861 $ tlog 'featureA#topic[0]' | 861 $ tlog 'featureA#topic[0]' |
862 3: featureA | 862 3: featureA |
863 $ tlog 'featureA#topic[:]' | |
864 1: featureA | |
865 2: featureA | |
866 3: featureA | |
863 | 867 |
864 $ tlog '2#t[-2]' | 868 $ tlog '2#t[-2]' |
865 $ tlog '2#t[-1]' | 869 $ tlog '2#t[-1]' |
866 1: featureA | 870 1: featureA |
867 $ tlog '2#t[0]' | 871 $ tlog '2#t[0]' |
868 2: featureA | 872 2: featureA |
869 $ tlog '2#t[1]' | 873 $ tlog '2#t[1]' |
870 3: featureA | 874 3: featureA |
871 $ tlog '2#t[2]' | 875 $ tlog '2#t[2]' |
876 $ tlog '2#t[-1:1]' | |
877 1: featureA | |
878 2: featureA | |
879 3: featureA | |
872 | 880 |
873 stack subscript relation | 881 stack subscript relation |
874 | 882 |
875 $ hg stack | 883 $ hg stack |
876 ### target: default (branch) | 884 ### target: default (branch) |