eol: tweak test-eol-clone.t with better descriptions and logging
Expose impact of changes coming next ...
--- a/tests/test-eol-clone.t Sun Oct 13 02:15:07 2019 +0200
+++ b/tests/test-eol-clone.t Mon Oct 14 01:42:24 2019 +0200
@@ -21,7 +21,9 @@
adding .hgeol
adding a.txt
-Clone
+Test commit of removed .hgeol - currently it seems to live on as zombie
+(causing "filtering a.txt through tolf") after being removed ... but actually
+it is just confusing use of tip revision.
$ cd ..
$ hg clone repo repo-2
@@ -37,14 +39,46 @@
second
third
$ hg remove .hgeol
+ $ touch a.txt * # ensure consistent st dirtyness checks, ignoring dirstate timing
+ $ hg st -v --debug
+ filtering a.txt through tolf
+ R .hgeol
$ hg commit -m 'remove eol'
+ $ hg exp
+ # HG changeset patch
+ # User test
+ # Date 0 0
+ # Thu Jan 01 00:00:00 1970 +0000
+ # Node ID c60b96c20c7de8c821127b548c34e5b170bcf9fe
+ # Parent 90f94e2cf4e24628afddd641688dfe4cd476d6e4
+ remove eol
+
+ diff -r 90f94e2cf4e2 -r c60b96c20c7d .hgeol
+ --- a/.hgeol Thu Jan 01 00:00:00 1970 +0000
+ +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
+ @@ -1,2 +0,0 @@
+ -[patterns]
+ -**.txt = native
$ hg push --quiet
$ cd ..
-Test clone of repo with .hgeol in working dir, but no .hgeol in tip
+Test clone of repo with .hgeol in working dir, but no .hgeol in default
+checkout revision tip. The repo is correctly updated to be consistent and have
+the exact content checked out without filtering, ignoring the current .hgeol in
+the source repo:
- $ hg clone repo repo-3
+ $ cat repo/.hgeol
+ [patterns]
+ **.txt = native
+ $ hg clone repo repo-3 -v --debug
+ linked 7 files
updating to branch default
+ resolving manifests
+ branchmerge: False, force: False, partial: False
+ ancestor: 000000000000, local: 000000000000+, remote: c60b96c20c7d
+ calling hook preupdate.eol: hgext.eol.preupdate
+ a.txt: remote created -> g
+ getting a.txt
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd repo-3