Mercurial > hg
diff tests/test-glog @ 10084:4c844f16bf39 stable
graphlog: fix output when both a limit and a path are provided
Limit was interpreted as absolute, from the topmost revision, without
counting the number of revisions matching a given file.
Which caused "glog -lN file" to show sometimes less than N csets if
the file was not modified in all of the N previous csets.
glog will now match the behavior of log.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Fri, 11 Dec 2009 15:25:33 +0900 |
parents | acb1c59b4514 |
children | 25430ff23cfa |
line wrap: on
line diff
--- a/tests/test-glog Wed Dec 16 12:10:21 2009 +0100 +++ b/tests/test-glog Fri Dec 11 15:25:33 2009 +0900 @@ -175,3 +175,19 @@ hg incoming --graph ../repo cd .. hg -R repo outgoing --graph repo2 + +cd repo +echo % file + limit with revs != cset revs +touch b +hg ci -Aqm0 +# this used to show only one cset +hg glog -l2 a + +echo "% file + limit + -ra:b, (b - a) < limit" +hg glog -l3000 -r32:tip a + +echo "% file + limit + -ra:b, b < tip" +hg glog -l1 -r32:34 a + +echo "% file + limit + -ra:b, b < tip, (b - a) < limit" +hg glog -l10 -r33:34 a