# HG changeset patch # User thananck@yahoo.com # Date 1120509561 28800 # Node ID 285965ddca41436d343319e11564f746e40caa91 # Parent d45d1c90032e4567abcd0afc7d5b5ee976720657 open .hgtags as binary # HG changeset patch # User thananck@yahoo.com # Node ID 2bd20bb06f817796d76b8e126f4a685426c4faf4 # Parent 7a240687674e6cf5a8dfd45973d7e3978b89af79 open .hgtags as binary The '.hgtags' file, in tag command, is opened as binary for interoperability with the other OS diff -r d45d1c90032e -r 285965ddca41 mercurial/commands.py --- a/mercurial/commands.py Mon Jul 04 12:38:34 2005 -0800 +++ b/mercurial/commands.py Mon Jul 04 12:39:21 2005 -0800 @@ -888,7 +888,7 @@ add = 0 if not os.path.exists(repo.wjoin(".hgtags")): add = 1 - repo.wfile(".hgtags", "a").write("%s %s\n" % (r, name)) + repo.wfile(".hgtags", "ab").write("%s %s\n" % (r, name)) if add: repo.add([".hgtags"]) if not opts['text']: