comparison 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
comparison
equal deleted inserted replaced
35297:c9144396099b 35298:921680c3e2ea
730 parent: 0:67e992f2c4f3 730 parent: 0:67e992f2c4f3
731 user: test 731 user: test
732 date: Thu Jan 01 00:00:01 1970 +0000 732 date: Thu Jan 01 00:00:01 1970 +0000
733 summary: b2 733 summary: b2
734 734
735
736 follow files starting from multiple revisions:
737
738 $ hg log -T '{rev}: {files}\n' -r "follow('glob:b?', 2+3+4)"
739 3: b1
740 4: b2
741
742 follow files starting from empty revision:
743
744 $ hg log -T '{rev}: {files}\n' -r "follow('glob:*', .-.)"
745 abort: follow expected at least one starting revision!
746 [255]
747
735 $ hg up -qC 4 748 $ hg up -qC 4
736 749
737 log -f -r null 750 log -f -r null
738 751
739 $ hg log -f -r null 752 $ hg log -f -r null