Show More
@@ -1938,6 +1938,8 b' Formatnode filter works:' | |||
|
1938 | 1938 | |
|
1939 | 1939 | Age filter: |
|
1940 | 1940 | |
|
1941 | $ hg init unstable-hash | |
|
1942 | $ cd unstable-hash | |
|
1941 | 1943 | $ hg log --template '{date|age}\n' > /dev/null || exit 1 |
|
1942 | 1944 | |
|
1943 | 1945 | >>> from datetime import datetime, timedelta |
@@ -1951,6 +1953,15 b' Age filter:' | |||
|
1951 | 1953 | $ hg log -l1 --template '{date|age}\n' |
|
1952 | 1954 | 7 years from now |
|
1953 | 1955 | |
|
1956 | $ cd .. | |
|
1957 | $ rm -rf unstable-hash | |
|
1958 | ||
|
1959 | Add a dummy commit to make up for the instability of the above: | |
|
1960 | ||
|
1961 | $ echo a > a | |
|
1962 | $ hg add a | |
|
1963 | $ hg ci -m future | |
|
1964 | ||
|
1954 | 1965 | Count filter: |
|
1955 | 1966 | |
|
1956 | 1967 | $ hg log -l1 --template '{node|count} {node|short|count}\n' |
General Comments 0
You need to be logged in to leave comments.
Login now