--- a/tests/test-eol.t Sat Feb 25 21:44:34 2017 -0500
+++ b/tests/test-eol.t Sat Feb 25 21:13:59 2017 -0500
@@ -470,6 +470,22 @@
> EOF
$ hg commit -m 'consistent'
+ $ hg init subrepo
+ $ hg -R subrepo pull -qu .
+ $ echo "subrepo = subrepo" > .hgsub
+ $ hg ci -Am "add subrepo"
+ adding .hgeol
+ adding .hgsub
+ $ hg archive -S ../archive
+ $ find ../archive/* | sort
+ ../archive/a.txt
+ ../archive/subrepo
+ ../archive/subrepo/a.txt
+ $ cat ../archive/a.txt ../archive/subrepo/a.txt
+ first\r (esc)
+ second\r (esc)
+ first\r (esc)
+ second\r (esc)
Test trailing newline