mercurial/manifest.py
changeset 14632 4819241ec1ad
parent 14208 d62d597b8974
child 15657 d976b1ef6760
--- a/mercurial/manifest.py	Wed Jun 15 17:25:58 2011 +0200
+++ b/mercurial/manifest.py	Thu Jun 16 08:49:26 2011 +0200
@@ -142,7 +142,7 @@
             # if this is changed to support newlines in filenames,
             # be sure to check the templates/ dir again (especially *-raw.tmpl)
             hex, flags = revlog.hex, map.flags
-            text = ''.join("%s\000%s%s\n" % (f, hex(map[f]), flags(f))
+            text = ''.join("%s\0%s%s\n" % (f, hex(map[f]), flags(f))
                            for f in files)
             arraytext = array.array('c', text)
             cachedelta = None
@@ -172,7 +172,7 @@
                 # bs will either be the index of the item or the insert point
                 start, end = self._search(addbuf, f, start)
                 if not todelete:
-                    l = "%s\000%s%s\n" % (f, revlog.hex(map[f]), map.flags(f))
+                    l = "%s\0%s%s\n" % (f, revlog.hex(map[f]), map.flags(f))
                 else:
                     if start == end:
                         # item we want to delete was not found, error out