ui.py: remove revlogopts and (unused) diffcache variables
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 10 Oct 2006 18:43:20 -0300
changeset 3340 929d04962115
parent 3339 0e3c45a74683
child 3341 a7cec14c9b40
ui.py: remove revlogopts and (unused) diffcache variables This should make the [revlog] section in a .hg/hgrc file be respected when there's still no changelog.
mercurial/localrepo.py
mercurial/ui.py
--- a/mercurial/localrepo.py	Tue Oct 10 18:43:20 2006 -0300
+++ b/mercurial/localrepo.py	Tue Oct 10 18:43:20 2006 -0300
@@ -54,7 +54,7 @@
         except IOError:
             pass
 
-        v = self.ui.revlogopts
+        v = self.ui.configrevlog()
         self.revlogversion = int(v.get('format', revlog.REVLOG_DEFAULT_FORMAT))
         self.revlogv1 = self.revlogversion != revlog.REVLOGV0
         fl = v.get('flags', None)
--- a/mercurial/ui.py	Tue Oct 10 18:43:20 2006 -0300
+++ b/mercurial/ui.py	Tue Oct 10 18:43:20 2006 -0300
@@ -30,8 +30,6 @@
             self.traceback = traceback
 
             self.updateopts(verbose, debug, quiet, interactive)
-            self.diffcache = None
-            self.revlogopts = self.configrevlog()
         else:
             # parentui may point to an ui object which is already a child
             self.parentui = parentui.parentui or parentui