tests/test-hgignore
changeset 4439 4e521a3ee5eb
parent 2009 182f500805db
child 5029 ac97e065cfc7
equal deleted inserted replaced
4429:3b0f73edee57 4439:4e521a3ee5eb
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 hg init
     3 hg init
       
     4 
       
     5 # Test issue 562: .hgignore requires newline at end
       
     6 touch foo
       
     7 touch bar
       
     8 touch baz
       
     9 cat > makeignore.py <<EOF
       
    10 f = open(".hgignore", "w")
       
    11 f.write("ignore\n")
       
    12 f.write("foo\n")
       
    13 # No EOL here
       
    14 f.write("bar")
       
    15 f.close()
       
    16 EOF
       
    17 
       
    18 python makeignore.py
       
    19 echo % should display baz only
       
    20 hg status
       
    21 rm foo bar baz .hgignore makeignore.py
       
    22 
     4 touch a.o
    23 touch a.o
     5 touch a.c
    24 touch a.c
     6 touch syntax
    25 touch syntax
     7 mkdir dir
    26 mkdir dir
     8 touch dir/a.o
    27 touch dir/a.o