open .hgtags as binary
authorthananck@yahoo.com
Mon, 04 Jul 2005 12:39:21 -0800
changeset 617 285965ddca41
parent 616 d45d1c90032e
child 618 4051b78c53c7
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
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']: