Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/verify.py @ 4267:b11a2fb59cf5
revlog: simplify revlog version handling
- pass the default version as an attribute on the opener
- eliminate config option mess
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 22 Mar 2007 19:52:38 -0500 |
parents | 6b4127c7d52a |
children | 47ef2d228375 |
comparison
equal
deleted
inserted
replaced
4266:1b5c38e9d7aa | 4267:b11a2fb59cf5 |
---|---|
37 if not revlogv1: | 37 if not revlogv1: |
38 warn(_("warning: `%s' uses revlog format 1") % name) | 38 warn(_("warning: `%s' uses revlog format 1") % name) |
39 elif revlogv1: | 39 elif revlogv1: |
40 warn(_("warning: `%s' uses revlog format 0") % name) | 40 warn(_("warning: `%s' uses revlog format 0") % name) |
41 | 41 |
42 revlogv1 = repo.revlogversion != revlog.REVLOGV0 | 42 revlogv1 = repo.changelog.version != revlog.REVLOGV0 |
43 if repo.ui.verbose or revlogv1 != repo.revlogv1: | 43 if repo.ui.verbose or not revlogv1: |
44 repo.ui.status(_("repository uses revlog format %d\n") % | 44 repo.ui.status(_("repository uses revlog format %d\n") % |
45 (revlogv1 and 1 or 0)) | 45 (revlogv1 and 1 or 0)) |
46 | 46 |
47 seen = {} | 47 seen = {} |
48 repo.ui.status(_("checking changesets\n")) | 48 repo.ui.status(_("checking changesets\n")) |