# HG changeset patch # User Martin Geisler # Date 1308206966 -7200 # Node ID 4819241ec1adc66ba310505d8b7c8fb9b65746a2 # Parent 234b9795d74e155c3d066f06167bf32ab7ceabcd manifest: use "\0" instead of "\000" Though both give the same result (a NUL byte), I found that I tend to read "\000" as "\0" + "00", which is something completely different. I did not change the occurance of "\000" in archival.py since there are other octal constants in that file. diff -r 234b9795d74e -r 4819241ec1ad mercurial/manifest.py --- 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