Mercurial > public > mercurial-scm > hg
diff tests/test-log.t @ 35298:921680c3e2ea
revset: make follow() accept multiple startrevs
The diff might look slightly complicated, but the initial "c = repo['.']" was
effective if rev = None.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 22 Sep 2016 19:11:26 +0900 |
parents | 2af38229f147 |
children | 89b5c2ae1980 |
line wrap: on
line diff
--- a/tests/test-log.t Thu Sep 22 18:41:51 2016 +0900 +++ b/tests/test-log.t Thu Sep 22 19:11:26 2016 +0900 @@ -732,6 +732,19 @@ date: Thu Jan 01 00:00:01 1970 +0000 summary: b2 + +follow files starting from multiple revisions: + + $ hg log -T '{rev}: {files}\n' -r "follow('glob:b?', 2+3+4)" + 3: b1 + 4: b2 + +follow files starting from empty revision: + + $ hg log -T '{rev}: {files}\n' -r "follow('glob:*', .-.)" + abort: follow expected at least one starting revision! + [255] + $ hg up -qC 4 log -f -r null