# HG changeset patch # User Thomas Arendsen Hein # Date 1165788233 -3600 # Node ID db36a4f490f685e3557d2315d4c8ee078af2749f # Parent 8e907b86126bab93155eb2ed227d3ccc95a20300 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. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -50,7 +50,10 @@ class localrepository(repo.repository): 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: