tests/test-tag
changeset 4914 5fb8f5992a3d
parent 4913 f0c25ed40ec6
equal deleted inserted replaced
4913:f0c25ed40ec6 4914:5fb8f5992a3d
    27 hg tag -l 'xx
    27 hg tag -l 'xx
    28 newline'
    28 newline'
    29 hg tag -l 'xx:xx'
    29 hg tag -l 'xx:xx'
    30 
    30 
    31 echo % issue 601
    31 echo % issue 601
    32 mv .hg/localtags .hg/ltags
    32 python << EOF
    33 head -1 .hg/ltags | tr -d '\n' > .hg/localtags
    33 f = file('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close()
       
    34 f = file('.hg/localtags', 'w'); f.write(last); f.close()
       
    35 EOF
    34 cat .hg/localtags
    36 cat .hg/localtags
    35 hg tag -l localnewline
    37 hg tag -l localnewline
    36 cat .hg/localtags
    38 cat .hg/localtags
    37 
    39 
    38 mv .hgtags hgtags
    40 python << EOF
    39 head -1 hgtags | tr -d '\n' > .hgtags
    41 f = file('.hgtags'); last = f.readlines()[-1][:-1]; f.close()
       
    42 f = file('.hgtags', 'w'); f.write(last); f.close()
       
    43 EOF
    40 hg ci -d '1000000 0' -m'broken manual edit of .hgtags'
    44 hg ci -d '1000000 0' -m'broken manual edit of .hgtags'
    41 cat .hgtags
    45 cat .hgtags
    42 hg tag -d '1000000 0' newline
    46 hg tag -d '1000000 0' newline
    43 cat .hgtags
    47 cat .hgtags