mercurial/localrepo.py
changeset 2152 57729c56a23c
parent 2150 f15c6394d90d
child 2156 628bf85f07ee
--- a/mercurial/localrepo.py	Fri Apr 28 12:38:11 2006 +0200
+++ b/mercurial/localrepo.py	Fri Apr 28 21:52:08 2006 +0200
@@ -43,6 +43,7 @@
 
         v = self.ui.revlogopts
         self.revlogversion = int(v.get('format', revlog.REVLOGV0))
+        self.revlogv1 = self.revlogversion != revlog.REVLOGV0
         flags = 0
         for x in v.get('flags', "").split():
             flags |= revlog.flagstr(x)
@@ -1830,8 +1831,9 @@
                 warn(_("warning: `%s' uses revlog format 0") % name)
 
         revlogv1 = self.revlogversion != revlog.REVLOGV0
-        self.ui.status(_("repository uses revlog format %d\n") %
-                       (revlogv1 and 1 or 0))
+        if self.ui.verbose or revlogv1 != self.revlogv1:
+            self.ui.status(_("repository uses revlog format %d\n") %
+                           (revlogv1 and 1 or 0))
 
         seen = {}
         self.ui.status(_("checking changesets\n"))