tests/test-eol-tag.t
branchstable
changeset 12974 75e4fade4ad9
child 13519 43b3b761d9d1
equal deleted inserted replaced
12972:7916a84c0758 12974:75e4fade4ad9
       
     1 http://mercurial.selenic.com/bts/issue2493
       
     2 
       
     3 Testing tagging with the EOL extension
       
     4 
       
     5   $ cat > $HGRCPATH <<EOF
       
     6   > [diff]
       
     7   > git = True
       
     8   > 
       
     9   > [extensions]
       
    10   > eol =
       
    11   > 
       
    12   > [eol]
       
    13   > native = CRLF
       
    14   > EOF
       
    15 
       
    16 setup repository
       
    17 
       
    18   $ hg init repo
       
    19   $ cd repo
       
    20   $ cat > .hgeol <<EOF
       
    21   > [patterns]
       
    22   > ** = native
       
    23   > EOF
       
    24   $ printf "first\r\nsecond\r\nthird\r\n" > a.txt
       
    25   $ hg commit --addremove -m 'checkin'
       
    26   adding .hgeol
       
    27   adding a.txt
       
    28 
       
    29 Tag:
       
    30 
       
    31   $ hg tag 1.0
       
    32 
       
    33 Rewrite .hgtags file as it would look on a new checkout:
       
    34 
       
    35   $ hg update -q null
       
    36   $ hg update -q
       
    37 
       
    38 Touch .hgtags file again:
       
    39 
       
    40   $ hg tag 2.0