Indicate the purpose of the dummy changelog file in itself.
Otherwise people getting an error message with an old installation might
wonder why this file is corrupted.
--- a/mercurial/localrepo.py Sun Dec 10 21:53:01 2006 +0100
+++ b/mercurial/localrepo.py Sun Dec 10 23:03:53 2006 +0100
@@ -50,7 +50,10 @@
reqfile.write("%s\n" % r)
reqfile.close()
# create an invalid changelog
- self.opener("00changelog.i", "a").write('\0\0\0\2')
+ self.opener("00changelog.i", "a").write(
+ '\0\0\0\2' # represents revlogv2
+ ' dummy changelog to prevent using the old repo layout'
+ )
else:
raise repo.RepoError(_("repository %s not found") % path)
elif create: