Mercurial > hg
changeset 3861:db36a4f490f6
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.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 10 Dec 2006 23:03:53 +0100 |
parents | 8e907b86126b |
children | 46abbed02b2d |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: