Indicate the purpose of the dummy changelog file in itself.
authorThomas Arendsen Hein <thomas@intevation.de>
Sun, 10 Dec 2006 23:03:53 +0100
changeset 3861 db36a4f490f6
parent 3860 8e907b86126b
child 3862 46abbed02b2d
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.
mercurial/localrepo.py
--- 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: