Mercurial > hg
comparison tests/test-grep.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 | c63a09b6b337 |
children | b842b1adfea2 |
comparison
equal
deleted
inserted
replaced
24063:c98fa0ca4678 | 24064:c260887cdbcd |
---|---|
79 port:2:1:+:spam:export | 79 port:2:1:+:spam:export |
80 port:2:2:+:spam:vaportight | 80 port:2:2:+:spam:vaportight |
81 port:2:3:+:spam:import/export | 81 port:2:3:+:spam:import/export |
82 port:1:2:+:eggs:export | 82 port:1:2:+:eggs:export |
83 port:0:1:+:spam:import | 83 port:0:1:+:spam:import |
84 | |
85 $ hg up -q null | |
86 $ hg grep -f port | |
87 [1] | |
84 | 88 |
85 $ cd .. | 89 $ cd .. |
86 $ hg init t2 | 90 $ hg init t2 |
87 $ cd t2 | 91 $ cd t2 |
88 $ hg grep foobar foo | 92 $ hg grep foobar foo |