summaryrefslogtreecommitdiff
path: root/tests/test-eol-tag.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-eol-tag.t')
-rw-r--r--tests/test-eol-tag.t39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/test-eol-tag.t b/tests/test-eol-tag.t
new file mode 100644
index 0000000..56fad6b
--- /dev/null
+++ b/tests/test-eol-tag.t
@@ -0,0 +1,39 @@
+http://mercurial.selenic.com/bts/issue2493
+
+Testing tagging with the EOL extension
+
+ $ cat >> $HGRCPATH <<EOF
+ > [extensions]
+ > eol =
+ >
+ > [eol]
+ > native = CRLF
+ > EOF
+
+setup repository
+
+ $ hg init repo
+ $ cd repo
+ $ cat > .hgeol <<EOF
+ > [patterns]
+ > ** = native
+ > EOF
+ $ printf "first\r\nsecond\r\nthird\r\n" > a.txt
+ $ hg commit --addremove -m 'checkin'
+ adding .hgeol
+ adding a.txt
+
+Tag:
+
+ $ hg tag 1.0
+
+Rewrite .hgtags file as it would look on a new checkout:
+
+ $ hg update -q null
+ $ hg update -q
+
+Touch .hgtags file again:
+
+ $ hg tag 2.0
+
+ $ cd ..