changeset 617:285965ddca41

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
author thananck@yahoo.com
date Mon, 04 Jul 2005 12:39:21 -0800
parents d45d1c90032e
children 4051b78c53c7
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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']: