diff tests/test-glog.t @ 24064:c260887cdbcd

log: fix --follow null parent not to include revision 0 If p1 is null, ':.' is translated as '0:null'. But rangeset can't handle null, only revision 0 was visible. Because 'null' should not be listed implicitly, "log --follow" (without -r) should be empty if p1 is null. Test of "hg grep -f" is added for cmdutil.walkchangerevs().
author Yuya Nishihara <yuya@tcha.org>
date Fri, 06 Feb 2015 21:53:39 +0900
parents 8d295ce6e488
children 8b4b9ee6001a
line wrap: on
line diff
--- a/tests/test-glog.t	Fri Feb 06 00:22:20 2015 +0900
+++ b/tests/test-glog.t	Fri Feb 06 21:53:39 2015 +0900
@@ -1767,6 +1767,13 @@
   nodetag 1
   nodetag 0
 
+Test --follow null parent
+
+  $ hg up -q null
+  $ testlog -f
+  []
+  []
+
 Test --follow-first
 
   $ hg up -q 3