##// END OF EJS Templates
test-eol-update: record new results as correct...
test-eol-update: record new results as correct Changeset 0852da25a31b changed the result of this test. The 'hg update 0' command, which causes a merge of modified a.txt, now leaves a.txt in the EOLN format specified by .hgeol as it was committed in revision 0. Previously, it used the .hgeol contents from the working directory before the update.

File last commit:

r12317:ed639917 stable
r12317:ed639917 stable
Show More
test-eol-update.out
69 lines | 1.1 KiB | text/plain | TextLexer
/ tests / test-eol-update.out
Martin Geisler
eol: extension for managing file EOLs
r11249
# ==== setup repository ====
% hg init
adding .hgeol
adding a.txt
% hg clone repo repo-LF
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
% printrepr.py a.txt (before)
first\r
second\r
third\r
% printrepr.py a.txt (after)
first
third
% hg diff
diff --git a/a.txt b/a.txt
--- a/a.txt
+++ b/a.txt
@@ -1,3 +1,2 @@
first\r
-second\r
third\r
% hg update 0
merging a.txt
1 files updated, 1 files merged, 0 files removed, 0 files unresolved
% printrepr.py a.txt
Steve Borho
test-eol-update: record new results as correct...
r12317 first
third
Martin Geisler
eol: extension for managing file EOLs
r11249 % hg diff
diff --git a/a.txt b/a.txt
--- a/a.txt
+++ b/a.txt
@@ -1,3 +1,2 @@
first
-second
third
% hg clone repo repo-CRLF
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
% printrepr.py a.txt (before)
first\r
second\r
third\r
% printrepr.py a.txt (after)
first\r
third\r
% hg diff
diff --git a/a.txt b/a.txt
--- a/a.txt
+++ b/a.txt
@@ -1,3 +1,2 @@
first\r
-second\r
third\r
% hg update 0
merging a.txt
1 files updated, 1 files merged, 0 files removed, 0 files unresolved
% printrepr.py a.txt
Steve Borho
test-eol-update: record new results as correct...
r12317 first
third
Martin Geisler
eol: extension for managing file EOLs
r11249 % hg diff
diff --git a/a.txt b/a.txt
--- a/a.txt
+++ b/a.txt
@@ -1,3 +1,2 @@
first
-second
third