tests/test-tag.t
changeset 39723 5abc47d4ca6b
parent 36055 eed40f0f4c6f
child 41384 57c462db87fd
equal deleted inserted replaced
39722:030d558c6456 39723:5abc47d4ca6b
   228   $ cd test
   228   $ cd test
   229 
   229 
   230 Issue601: hg tag doesn't do the right thing if .hgtags or localtags
   230 Issue601: hg tag doesn't do the right thing if .hgtags or localtags
   231 doesn't end with EOL
   231 doesn't end with EOL
   232 
   232 
   233   $ $PYTHON << EOF
   233   $ "$PYTHON" << EOF
   234   > f = open('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close()
   234   > f = open('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close()
   235   > f = open('.hg/localtags', 'w'); f.write(last); f.close()
   235   > f = open('.hg/localtags', 'w'); f.write(last); f.close()
   236   > EOF
   236   > EOF
   237   $ cat .hg/localtags; echo
   237   $ cat .hg/localtags; echo
   238   acb14030fe0a21b60322c440ad2d20cf7685a376 localblah
   238   acb14030fe0a21b60322c440ad2d20cf7685a376 localblah
   240   $ cat .hg/localtags; echo
   240   $ cat .hg/localtags; echo
   241   acb14030fe0a21b60322c440ad2d20cf7685a376 localblah
   241   acb14030fe0a21b60322c440ad2d20cf7685a376 localblah
   242   c2899151f4e76890c602a2597a650a72666681bf localnewline
   242   c2899151f4e76890c602a2597a650a72666681bf localnewline
   243   
   243   
   244 
   244 
   245   $ $PYTHON << EOF
   245   $ "$PYTHON" << EOF
   246   > f = open('.hgtags'); last = f.readlines()[-1][:-1]; f.close()
   246   > f = open('.hgtags'); last = f.readlines()[-1][:-1]; f.close()
   247   > f = open('.hgtags', 'w'); f.write(last); f.close()
   247   > f = open('.hgtags', 'w'); f.write(last); f.close()
   248   > EOF
   248   > EOF
   249   $ hg ci -m'broken manual edit of .hgtags'
   249   $ hg ci -m'broken manual edit of .hgtags'
   250   $ cat .hgtags; echo
   250   $ cat .hgtags; echo