##// END OF EJS Templates
test-transaction-safety: glog out irrelevant flag...
test-transaction-safety: glog out irrelevant flag The test is focussing on the inline flag, so we glob out the other to highlight that fact and prevent noise in the future.

File last commit:

r46868:f6259840 default
r52073:2e0b2a38 default
Show More
test-eol-clone.t
121 lines | 2.8 KiB | text/troff | Tads3Lexer
Matt Mackall
tests: unify test-eol-clone
r12422 Testing cloning with the EOL extension
Martin Geisler
tests: don't overwrite HGRCPATH...
r13519 $ cat >> $HGRCPATH <<EOF
Matt Mackall
tests: unify test-eol-clone
r12422 > [extensions]
> eol =
>
> [eol]
> native = CRLF
> EOF
setup repository
$ hg init repo
$ cd repo
$ cat > .hgeol <<EOF
> [patterns]
> **.txt = native
> EOF
$ printf "first\r\nsecond\r\nthird\r\n" > a.txt
$ hg commit --addremove -m 'checkin'
adding .hgeol
adding a.txt
Mads Kiilerich
eol: don't fallback to use .hgeol from tip (BC)...
r43478 Test commit of removed .hgeol and how it immediately makes the automatic
changes explicit and committable.
Matt Mackall
tests: unify test-eol-clone
r12422
$ cd ..
$ hg clone repo repo-2
updating to branch default
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd repo-2
Mads Kiilerich
tests: use (esc) instead of other kinds of string escaping
r12943 $ cat a.txt
first\r (esc)
second\r (esc)
third\r (esc)
$ hg cat a.txt
Matt Mackall
tests: unify test-eol-clone
r12422 first
second
third
$ hg remove .hgeol
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 $ touch a.txt * # ensure consistent st dirtyness checks, ignoring dirstate timing
$ hg st -v --debug
Mads Kiilerich
eol: don't fallback to use .hgeol from tip (BC)...
r43478 M a.txt
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 R .hgeol
Matt Mackall
tests: unify test-eol-clone
r12422 $ hg commit -m 'remove eol'
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 $ hg exp
# HG changeset patch
# User test
# Date 0 0
# Thu Jan 01 00:00:00 1970 +0000
Mads Kiilerich
eol: don't fallback to use .hgeol from tip (BC)...
r43478 # Node ID 3c20c2d90333b6ecdc8f7aa8f9b73223c7c7a608
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 # Parent 90f94e2cf4e24628afddd641688dfe4cd476d6e4
remove eol
Mads Kiilerich
eol: don't fallback to use .hgeol from tip (BC)...
r43478 diff -r 90f94e2cf4e2 -r 3c20c2d90333 .hgeol
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 --- 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
Mads Kiilerich
eol: don't fallback to use .hgeol from tip (BC)...
r43478 diff -r 90f94e2cf4e2 -r 3c20c2d90333 a.txt
--- a/a.txt Thu Jan 01 00:00:00 1970 +0000
+++ b/a.txt Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +1,3 @@
-first
-second
-third
+first\r (esc)
+second\r (esc)
+third\r (esc)
Matt Mackall
tests: unify test-eol-clone
r12422 $ hg push --quiet
$ cd ..
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 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:
Matt Mackall
tests: unify test-eol-clone
r12422
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 $ cat repo/.hgeol
[patterns]
**.txt = native
$ hg clone repo repo-3 -v --debug
linked 7 files
Matt Mackall
tests: unify test-eol-clone
r12422 updating to branch default
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 resolving manifests
branchmerge: False, force: False, partial: False
Mads Kiilerich
eol: don't fallback to use .hgeol from tip (BC)...
r43478 ancestor: 000000000000, local: 000000000000+, remote: 3c20c2d90333
Mads Kiilerich
eol: tweak test-eol-clone.t with better descriptions and logging...
r43477 calling hook preupdate.eol: hgext.eol.preupdate
a.txt: remote created -> g
getting a.txt
Matt Mackall
tests: unify test-eol-clone
r12422 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
clone: make sure we warm the cache after a clone...
r47032 updating the branch cache
Matt Mackall
tests: unify test-eol-clone
r12422 $ cd repo-3
Mads Kiilerich
tests: use (esc) instead of other kinds of string escaping
r12943 $ cat a.txt
Mads Kiilerich
eol: don't fallback to use .hgeol from tip (BC)...
r43478 first\r (esc)
second\r (esc)
third\r (esc)
Matt Mackall
tests: unify test-eol-clone
r12422
Test clone of revision with .hgeol
$ cd ..
$ hg clone -r 0 repo repo-4
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
Denis Laxalde
transaction-summary: show the range of new revisions upon pull/unbundle (BC)...
r34662 new changesets 90f94e2cf4e2
Matt Mackall
tests: unify test-eol-clone
r12422 updating to branch default
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd repo-4
$ cat .hgeol
[patterns]
**.txt = native
Mads Kiilerich
tests: use (esc) instead of other kinds of string escaping
r12943 $ cat a.txt
first\r (esc)
second\r (esc)
third\r (esc)
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913
$ cd ..