diff tests/test-log.t @ 35309:d36eda8896cc

revset: alias follow(startrev=rev) to ancestors(rev) This seems natural given 'log -frREV' (with no file pattern) is equivalent to 'log -frREV *'.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 22 Sep 2016 19:40:07 +0900
parents 89b5c2ae1980
children d67bcfc0041f
line wrap: on
line diff
--- a/tests/test-log.t	Thu Sep 22 19:35:36 2016 +0900
+++ b/tests/test-log.t	Thu Sep 22 19:40:07 2016 +0900
@@ -748,8 +748,20 @@
 follow starting from revisions:
 
   $ hg log -Gq -r "follow(startrev=2+4)"
-  hg: parse error: follow takes no arguments or a pattern and an optional revset
-  [255]
+  o  4:ddb82e70d1a1
+  |
+  | o  2:60c670bf5b30
+  | |
+  | o  1:3d5bf5654eda
+  |/
+  @  0:67e992f2c4f3
+  
+
+follow the current revision:
+
+  $ hg log -Gq -r "follow()"
+  @  0:67e992f2c4f3
+  
 
   $ hg up -qC 4