mercurial/localrepo.py
changeset 2156 628bf85f07ee
parent 2155 ff255b41b4aa
parent 2152 57729c56a23c
child 2165 d821918e3bee
child 2166 d0c02b4dce9a
--- a/mercurial/localrepo.py	Fri Apr 28 15:50:22 2006 -0700
+++ b/mercurial/localrepo.py	Fri Apr 28 15:50:56 2006 -0700
@@ -44,6 +44,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)
@@ -1886,8 +1887,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"))