Skip to content
Snippets Groups Projects
Commit 7699d923 authored by kiilerix's avatar kiilerix
Browse files

eol: tweak test-eol-clone.t with better descriptions and logging

Expose impact of changes coming next ...
parent dfaa477e
No related branches found
No related tags found
No related merge requests found
......@@ -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,4 +39,8 @@
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'
......@@ -40,4 +46,19 @@
$ 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 ..
......@@ -41,5 +62,8 @@
$ 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:
......@@ -45,3 +69,7 @@
$ 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
......@@ -47,4 +75,10 @@
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment