Comments
Patch
@@ -1413,6 +1413,33 @@ Age filter:
$ hg log -l1 --template '{date|age}\n'
7 years from now
+Len filter:
+
+ $ hg log -l1 --template '{node|len} {node|short|len}\n'
+ 40 12
+
+ $ hg log -G --template '{rev}: children: {children|len}, tags: {tags|len}, file_adds: {file_adds|len}'
+ @ 9: children: 0, tags: 1, file_adds: 1
+ |
+ o 8: children: 1, tags: 0, file_adds: 2
+ |
+ o 7: children: 1, tags: 0, file_adds: 1
+
+ o 6: children: 0, tags: 0, file_adds: 0
+ |\
+ | o 5: children: 1, tags: 0, file_adds: 1
+ | |
+ o | 4: children: 1, tags: 0, file_adds: 0
+ |/
+ o 3: children: 2, tags: 0, file_adds: 0
+ |
+ o 2: children: 1, tags: 0, file_adds: 1
+ |
+ o 1: children: 1, tags: 0, file_adds: 1
+ |
+ o 0: children: 1, tags: 0, file_adds: 1
+
+
Error on syntax:
$ echo 'x = "f' >> t